Skip to content

Commit 7deb827

Browse files
committed
change to synchronize in dataSource options
1 parent e546793 commit 7deb827

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

backend/src/data-source.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import {
1616
AggregateTraceDataHourly,
1717
Attack,
1818
} from "models"
19-
import { isDevelopment } from "utils"
20-
import { initialMigration1665758810395 } from "migrations/1665758810395-initial-migration"
2119

2220
export const AppDataSource: DataSource = new DataSource({
2321
type: "postgres",
@@ -38,8 +36,6 @@ export const AppDataSource: DataSource = new DataSource({
3836
AggregateTraceDataHourly,
3937
Attack,
4038
],
41-
synchronize: isDevelopment,
42-
migrations: [initialMigration1665758810395],
43-
migrationsRun: !isDevelopment,
39+
synchronize: true,
4440
logging: false,
4541
})

0 commit comments

Comments
 (0)