From 85edd2296e2cadd43aa0163ffa77b3b2b3d32d51 Mon Sep 17 00:00:00 2001 From: Kentaro Fukunaga Date: Fri, 8 Mar 2024 05:21:22 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20820:=20DB=E3=83=9E=E3=82=A4?= =?UTF-8?q?=E3=82=B0=E3=83=AC=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=83=95?= =?UTF-8?q?=E3=82=A1=E3=82=A4=E3=83=AB=E8=BF=BD=E5=8A=A0=EF=BC=88=E3=82=A2?= =?UTF-8?q?=E3=82=AB=E3=82=A6=E3=83=B3=E3=83=88=E9=9A=8E=E5=B1=A4=E6=A7=8B?= =?UTF-8?q?=E9=80=A0=E5=A4=89=E6=9B=B4PBI=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task3863: DBマイグレーションファイル追加](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3863) - licenseOrdersテーブルに、from_account_idとstatus検索のマルチカラムインデックスを追加しました。 - 影響範囲(他の機能にも影響があるか) - なし ## レビューポイント - 気になる点あれば ## 動作確認状況 - ローカルでmigrate:up/downをして、想定通りindex作成/削除されることを確認 - 行った修正がデグレを発生させていないことを確認できるか - インデックス追加のみのため無し --- .../db/migrations/061-add_license_orders_index.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dictation_server/db/migrations/061-add_license_orders_index.sql diff --git a/dictation_server/db/migrations/061-add_license_orders_index.sql b/dictation_server/db/migrations/061-add_license_orders_index.sql new file mode 100644 index 0000000..98004c9 --- /dev/null +++ b/dictation_server/db/migrations/061-add_license_orders_index.sql @@ -0,0 +1,5 @@ +-- +migrate Up +ALTER TABLE `license_orders` ADD INDEX `idx_from_account_id_and_status` (from_account_id,status); + +-- +migrate Down +ALTER TABLE `license_orders` DROP INDEX `idx_from_account_id_and_status`;