1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2025-01-29 06:01:34 +00:00
ibis/migrations/2024-11-12-131724_article-approval/up.sql
Nutomic 54c65e7474
Implement comments for articles (fixes #10) (#112)
* Move files into subfolders

* Implement comments for articles (fixes #10)

* wip

* backend mostly done

* tests wip

* test working

* wip federation

* partial federation

* comment federation working!

* federation and tests working with delete

* wip frontend

* basic comment rendering

* various

* wip comment tree rendering

* all working

* update rust

* comment markdown

* only one comment editor at a time

* display comment creation time

* fedilink

* live handling of delete/restore

* comment editing
2025-01-21 11:39:10 +00:00

11 lines
292 B
SQL

ALTER TABLE article
ADD COLUMN approved bool NOT NULL DEFAULT TRUE;
ALTER TABLE article
ADD COLUMN published timestamptz NOT NULL DEFAULT now();
ALTER TABLE CONFLICT
ADD COLUMN published timestamptz NOT NULL DEFAULT now();
ALTER TABLE edit RENAME COLUMN created TO published;