Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/backend/src/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ const AppDataSource = new DataSource({
database: process.env.NX_DB_DATABASE,
entities: [],
migrations: ['apps/backend/src/migrations/*.js'],
// migrations: ['apps/backend/src/migrations/*.ts'], // use this line instead of the above when running migrations locally,
// then switch back to the above before pushing to github so that it works on the deployment server
// Setting synchronize: true shouldn't be used in production - otherwise you can lose production data
synchronize: false,
namingStrategy: new PluralNamingStrategy(),
Expand Down