diff --git a/src/main/resources/db/migration/V10__modify_receipt_option_idx.sql b/src/main/resources/db/migration/V10__modify_receipt_option_idx.sql new file mode 100644 index 00000000..d8d7e939 --- /dev/null +++ b/src/main/resources/db/migration/V10__modify_receipt_option_idx.sql @@ -0,0 +1,8 @@ +ALTER TABLE receipt_option + DROP CONSTRAINT `FK_RECEIPT_OPTION_ON_RECEIPT`; +ALTER TABLE receipt_option + DROP INDEX `idx_receipt_option_receipt_id`; +ALTER TABLE receipt_option + ADD CONSTRAINT `FK_RECEIPT_OPTION_ON_RECEIPT` FOREIGN KEY (`receipt_id`) REFERENCES `receipt` (`receipt_id`); +ALTER TABLE receipt_option + ADD INDEX `idx_receipt_option_receipt_id` (`receipt_id`); \ No newline at end of file