From 82e1de1165be2bb06f5825e775950d35de8dee1c Mon Sep 17 00:00:00 2001 From: "saito.k" Date: Wed, 29 Mar 2023 06:57:00 +0000 Subject: [PATCH] =?UTF-8?q?Merged=20PR=2059:=20DB=E3=81=AB=E3=83=86?= =?UTF-8?q?=E3=83=BC=E3=83=96=E3=83=AB=E3=82=92=E4=BD=9C=E6=88=90=E3=81=99?= =?UTF-8?q?=E3=82=8B=E6=89=8B=E9=A0=86=E3=82=92=E5=AE=9F=E8=A3=85=EF=BC=88?= =?UTF-8?q?=E3=83=9E=E3=82=A4=E3=82=B0=E3=83=AC=E3=83=BC=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## 概要 [Task1493: DBにテーブルを作成する手順を実装(マイグレーション)](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/1493) - 元PBI or タスクへのリンク(内容・目的などはそちらにあるはず) - 何をどう変更したか、追加したライブラリなど - このPull Requestでの対象/対象外 - 影響範囲(他の機能にも影響があるか) ## レビューポイント - 特にレビューしてほしい箇所 - 軽微なものや自明なものは記載不要 - 修正範囲が大きい場合などに記載 - 全体的にや仕様を満たしているか等は本当に必要な時のみ記載 ## UIの変更 - Before/Afterのスクショなど - スクショ置き場 ## 動作確認状況 - ローカルで確認、develop環境で確認など ## 補足 - 相談、参考資料などがあれば --- dictation_server/.env | 4 ++-- dictation_server/db/dbconfig.yml | 4 ++-- dictation_server/src/app.module.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dictation_server/.env b/dictation_server/.env index 717a856..eeab4bb 100644 --- a/dictation_server/.env +++ b/dictation_server/.env @@ -1,4 +1,4 @@ -DB_ENDPOINT=omds-mysql +DB_HOST=omds-mysql DB_PORT=3306 DB_EXTERNAL_PORT=3306 DB_NAME=omds @@ -15,4 +15,4 @@ EMAIL_CONFIRM_LIFETIME=86400000 JWT_PRIVATE_KEY=xxxxxxxxxxxxx JWT_PUBLIC_KEY=xxxxxxxxxxxxx SENDGRID_API_KEY=xxxxxxxxxxxxxxxx -MAIL_FROM=xxxxx@xxxxx.xxxx \ No newline at end of file +MAIL_FROM=xxxxx@xxxxx.xxxx diff --git a/dictation_server/db/dbconfig.yml b/dictation_server/db/dbconfig.yml index 4c66e2a..25fdfa9 100644 --- a/dictation_server/db/dbconfig.yml +++ b/dictation_server/db/dbconfig.yml @@ -1,8 +1,8 @@ local: dialect: mysql dir: /app/dictation_server/db/migrations - datasource: ${DB_USERNAME}:${DB_PASSWORD}@tcp(${DB_ENDPOINT}:${DB_PORT})/${DB_NAME}?charset=utf8mb4&collation=utf8mb4_0900_ai_ci&parseTime=true + datasource: ${DB_USERNAME}:${DB_PASSWORD}@tcp(${DB_HOST}:${DB_PORT})/${DB_NAME}?charset=utf8mb4&collation=utf8mb4_0900_ai_ci&parseTime=true ci: dialect: mysql dir: ./dictation_server/db/migrations - datasource: DB_USERNAME:DB_PASS@tcp(WRITER_ENDPOINT:DB_PORT)/DB_NAME?charset=utf8mb4&collation=utf8mb4_0900_ai_ci&parseTime=true + datasource: DB_USERNAME:DB_PASS@tcp(DB_HOST:DB_PORT)/DB_NAME?charset=utf8mb4&collation=utf8mb4_0900_ai_ci&parseTime=true diff --git a/dictation_server/src/app.module.ts b/dictation_server/src/app.module.ts index 3057ed3..3bcdb86 100644 --- a/dictation_server/src/app.module.ts +++ b/dictation_server/src/app.module.ts @@ -41,7 +41,7 @@ import { UsersRepositoryModule } from './repositories/users/users.repository.mod imports: [ConfigModule], useFactory: async (configService: ConfigService) => ({ type: 'mysql', - host: configService.get('DB_ENDPOINT'), + host: configService.get('DB_HOST'), port: configService.get('DB_PORT'), username: configService.get('DB_USERNAME'), password: configService.get('DB_PASSWORD'),