Added unique indexes
This commit is contained in:
parent
e7ec8ea49f
commit
19a8b90ca2
1 changed files with 3 additions and 0 deletions
3
src/Upgrades/Upgrade7.sql
Normal file
3
src/Upgrades/Upgrade7.sql
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
CREATE UNIQUE INDEX idx_uq_postscore_post_id_user_id ON postscore(post_id, user_id);
|
||||||
|
CREATE UNIQUE INDEX idx_uq_crossref_post_id_post2_id ON crossref(post_id, post2_id);
|
||||||
|
|
Loading…
Reference in a new issue