surwiki/migrations/20171018134042_add_author_to_article_revisions/up.sql

4 lines
134 B
MySQL
Raw Permalink Normal View History

2017-10-18 17:33:21 +03:00
ALTER TABLE article_revisions ADD COLUMN author TEXT CHECK (author != '');
CREATE INDEX author_lookup ON article_revisions (author);