diff --git a/migrations/000.216.sql b/migrations/000.216.sql new file mode 100644 index 0000000..b74719c --- /dev/null +++ b/migrations/000.216.sql @@ -0,0 +1,18 @@ +-- P5-5460: add unique contraint on article_id, market_id + +-- remove duplicates + +DELETE FROM article_content WHERE id IN ( + 152, + 1916, + 4255, + 1054, + 4320, + 623, + 2121, + 3214, + 2889 +); + +ALTER TABLE article_content +ADD UNIQUE (article_id, market_id);