From 88ca525a1a141d0306971dd8f1c161919c137da1 Mon Sep 17 00:00:00 2001 From: kmw2378 Date: Wed, 10 Jul 2024 15:31:24 +0900 Subject: [PATCH] =?UTF-8?q?[feat]ReceiptOption=20=EC=9D=B8=EB=8D=B1?= =?UTF-8?q?=EC=8A=A4=20=EC=88=98=EC=A0=95=20=EC=82=AC=ED=95=AD=20Flyway=20?= =?UTF-8?q?SQL=20=EC=B6=94=EA=B0=80=20(#324)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: kmw2378 --- .../db/migration/V10__modify_receipt_option_idx.sql | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/main/resources/db/migration/V10__modify_receipt_option_idx.sql 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