surwiki/migrations/20171018134042_add_author_to_article_revisions/up.sql
2017-10-18 16:33:21 +02:00

3 lines
134 B
SQL

ALTER TABLE article_revisions ADD COLUMN author TEXT CHECK (author != '');
CREATE INDEX author_lookup ON article_revisions (author);