From 3f16e84317c2df3b2effa40e4e399fb153b6d6d4 Mon Sep 17 00:00:00 2001 From: "oura.a" Date: Thu, 11 May 2023 09:08:16 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=2088:=20users=E3=83=86=E3=83=BC?= =?UTF-8?q?=E3=83=96=E3=83=AB=E3=81=ABAuto=20Renew/License=20Alert/Notific?= =?UTF-8?q?ation=E3=81=AE=E5=88=97=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=99?= =?UTF-8?q?=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 Task1619: usersテーブルにAuto Renew/License Alert/Notificationの列を追加する https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/OMDSDictation/_sprints/taskboard/OMDSDictation%20%E3%83%81%E3%83%BC%E3%83%A0/OMDSDictation/%E3%82%B9%E3%83%97%E3%83%AA%E3%83%B3%E3%83%88%207-1?workitem=1619 ユーザテーブルへ「autoRenew、licenseAlert、notification」のカラムを追加するマイグレーションファイルを作成 レビューポイント カラム定義が認識通りであるか 既存処理には定義追加以外の影響はないと判断したが、問題ないか (user.entityとusers.repository.serviceへの定義追加は タスク1593「API実装(ユーザー登録)」で事前に行っていました。) UIの変更 なし 動作確認状況 ローカルDBでマイグレーションを実施。 カラムの追加と「autoRenew、licenseAlert、notification」が未指定でも「1」となることを確認。 補足 なし --- .../db/migrations/003-add_users_column.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 dictation_server/db/migrations/003-add_users_column.sql diff --git a/dictation_server/db/migrations/003-add_users_column.sql b/dictation_server/db/migrations/003-add_users_column.sql new file mode 100644 index 0000000..322f4d6 --- /dev/null +++ b/dictation_server/db/migrations/003-add_users_column.sql @@ -0,0 +1,11 @@ +-- +migrate Up +ALTER TABLE `users` ADD COLUMN( + `auto_renew` BOOLEAN DEFAULT TRUE NOT NULL COMMENT 'ライセンスの自動更新をするかどうか', + `license_alert` BOOLEAN DEFAULT TRUE NOT NULL COMMENT 'ライセンスの期限切れ通知をするかどうか', + `notification` BOOLEAN DEFAULT TRUE NOT NULL COMMENT '完了通知をするかどうか' +); + +-- +migrate Down +ALTER TABLE `users` DROP COLUMN `auto_renew`; +ALTER TABLE `users` DROP COLUMN `license_alert`; +ALTER TABLE `users` DROP COLUMN `notification`; \ No newline at end of file