From 1b26a3ff5bf496915c646bacc63f4407f10e820a Mon Sep 17 00:00:00 2001 From: codeing999 Date: Tue, 18 Jul 2023 23:27:59 +0900 Subject: [PATCH] =?UTF-8?q?db=20=EC=8B=B1=ED=81=AC=EB=A1=9C=EB=82=98?= =?UTF-8?q?=EC=9D=B4=EC=A6=88=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.module.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app.module.ts b/src/app.module.ts index 4ad5ffb..e7e30aa 100644 --- a/src/app.module.ts +++ b/src/app.module.ts @@ -33,8 +33,9 @@ import { DoctorEntity } from './module/doctor/data/doctor.entity'; @Module({ imports: [ ConfigModule.forRoot({ - isGlobal: true, - envFilePath:`.env.${process.env.NODE_ENV}`}), + isGlobal: true, + envFilePath: `.env.${process.env.NODE_ENV}`, + }), TypeOrmModule.forRoot({ type: 'mysql', @@ -43,7 +44,7 @@ import { DoctorEntity } from './module/doctor/data/doctor.entity'; username: process.env.DB_USER, password: process.env.DB_PW, database: process.env.DB_SCHEMA, - synchronize: false, + synchronize: true, dropSchema: false, entities: [ CounselingEntity,