Skip to content

Commit

Permalink
[refactor] flyway 추가(#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
hwan2-99 committed May 28, 2024
1 parent 6e38325 commit fef36b0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/main/resources/db/migration/V7__modify_funding_idx.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ALTER TABLE funding
DROP FOREIGN KEY `FK308j7d5ln7xaq590xo8bxwul0`;

ALTER TABLE funding
DROP FOREIGN KEY `FK5cxch4qfn9ynsvod79uyulcvj`;

ALTER TABLE funding
DROP INDEX `idx_funding_member_id`;

ALTER TABLE funding
DROP INDEX `idx_funding_product_id`;

ALTER TABLE funding
ADD CONSTRAINT `FK308j7d5ln7xaq590xo8bxwul0`
FOREIGN KEY (`member_id`) REFERENCES `member` (`member_id`);

ALTER TABLE funding
ADD CONSTRAINT `FK5cxch4qfn9ynsvod79uyulcvj`
FOREIGN KEY (`product_id`) REFERENCES `product` (`product_id`);

ALTER TABLE funding
ADD INDEX `idx_funding_member_id` (member_id);

ALTER TABLE funding
ADD INDEX `idx_funding_product_id` (product_id);

0 comments on commit fef36b0

Please sign in to comment.