1
0
Fork 0
mirror of https://github.com/Nutomic/ibis.git synced 2025-01-30 08:21:36 +00:00
ibis/migrations/2024-11-12-131724_article-approval/up.sql

12 lines
292 B
MySQL
Raw Normal View History

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;