Skip to content

Commit 27f264e

Browse files
committed
Change from index to unique constraint
1 parent dc7d92c commit 27f264e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ You can use the following [sample](./downgrade.sample).
3535
- [Product](./scripts/product.sql)
3636
- [CMS](./scripts/cms.sql)
3737
- [EE Tables](./scripts/ee.sql)
38+
- [Wishlist](./scripts/wishlist.sql)
3839

3940
## Similar package
4041

scripts/wishlist.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE `wishlist`
2+
DROP INDEX WISHLIST_CUSTOMER_ID,
3+
ADD CONSTRAINT `WISHLIST_CUSTOMER_ID` UNIQUE KEY (`customer_id`);

0 commit comments

Comments
 (0)