P5-5460 articles: add unique contraint on article_id, market_id
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user