diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 62ccb6c..2cab8ba 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -24,6 +24,7 @@ services: - TYPEORM_DATABASE=postgres - TYPEORM_USERNAME=postgres - TYPEORM_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV + - TYPEORM_SYNCHRONIZE=true - MQTT_URL=tcp://mosquitto:1883 # Must specify JWT_SECRET and MQTT_URL diff --git a/docker-compose.yml b/docker-compose.yml index 89273b9..d8af50e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,6 +16,7 @@ services: - TYPEORM_DATABASE=postgres - TYPEORM_USERNAME=postgres - TYPEORM_PASSWORD=8JN4w0UsN5dbjMjNvPe452P2yYOqg5PV + - TYPEORM_SYNCHRONIZE=true # Must specify JWT_SECRET and MQTT_URL database: diff --git a/server/Database.ts b/server/Database.ts index 0f6fef2..3e5e9cb 100644 --- a/server/Database.ts +++ b/server/Database.ts @@ -38,7 +38,6 @@ export class Database { } async createAll() { - await this.conn.synchronize(); if (process.env.INSERT_TEST_DATA) { await this.insertData(); }