From 29bfc9f5a6b19ac49a12b62cbeb77891fea1ab65 Mon Sep 17 00:00:00 2001 From: "saito.k" Date: Wed, 2 Aug 2023 06:53:11 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=20296:=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=EF=BC=88?= =?UTF-8?q?=E6=9A=97=E5=8F=B7=E5=8C=96=E3=83=91=E3=82=B9=E3=83=AF=E3=83=BC?= =?UTF-8?q?=E3=83=89=E8=BF=BD=E5=8A=A0=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task2314: DBマイグレーション](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2314) - userテーブルに暗号化パスワードのカラムを追加 ## レビューポイント - asciiの設定をカラム自体に追加したが妥当か - 使用不可の文字列チェックはServer等で行う ## UIの変更 - Before/Afterのスクショなど - スクショ置き場 ## 動作確認状況 - ローカルで確認 ## 補足 - 相談、参考資料などがあれば --- .../db/migrations/027-add_encrition_password.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 dictation_server/db/migrations/027-add_encrition_password.sql diff --git a/dictation_server/db/migrations/027-add_encrition_password.sql b/dictation_server/db/migrations/027-add_encrition_password.sql new file mode 100644 index 0000000..91422f4 --- /dev/null +++ b/dictation_server/db/migrations/027-add_encrition_password.sql @@ -0,0 +1,5 @@ +-- +migrate Up +ALTER TABLE `users` ADD COLUMN `encryption_password` VARCHAR(255) COMMENT '暗号化パスワード' AFTER `encryption`; + +-- +migrate Down +ALTER TABLE `users` DROP COLUMN `encryption_password`; \ No newline at end of file