Skip to content

Commit

Permalink
Merge pull request #42 from overthestream/main
Browse files Browse the repository at this point in the history
db migrate
  • Loading branch information
overthestream authored Sep 19, 2023
2 parents 4f25441 + 558c43a commit 0488673
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"compression": "^1.7.4",
"cors": "^2.8.5",
"dotenv": "^16.0.2",
"pg": "^8.10.0",
"express": "^4.18.1",
"joi": "^17.6.0",
"jsonwebtoken": "^8.5.1",
Expand Down
6 changes: 3 additions & 3 deletions src/config/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import dotenv from 'dotenv';
dotenv.config();
// To do : 개발용, 배포용 분리
const AppDataSource = new DataSource({
type: 'mysql',
type: 'postgres',
host: process.env.DB_ENDPOINT,
port: 3306,
port: 5432,
username: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_DATABASE,
synchronize: false,
synchronize: true,
logging: false, // 개발용
entities: [join(__dirname, '../entities/*{.ts,.js}')],
migrations: [],
Expand Down

0 comments on commit 0488673

Please sign in to comment.