Fix buggy slugs_index
This commit is contained in:
parent
53bc5b2df1
commit
ea28f4f4f7
2 changed files with 2 additions and 0 deletions
0
migrations/20170920205112_fix_slugs_index/down.sql
Normal file
0
migrations/20170920205112_fix_slugs_index/down.sql
Normal file
2
migrations/20170920205112_fix_slugs_index/up.sql
Normal file
2
migrations/20170920205112_fix_slugs_index/up.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
DROP INDEX slugs_index;
|
||||||
|
CREATE UNIQUE INDEX slugs_index ON article_revisions (slug) WHERE latest=1;
|
Loading…
Reference in a new issue