fixed migrations directory to default to the production version.

This is the downside of this patch - the .env file has to be different in dev and production version
This commit is contained in:
Ulf Gebhardt 2021-09-21 10:34:56 +02:00
parent 94424f17a2
commit cebf92c451
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 5 additions and 2 deletions

View File

@ -4,4 +4,7 @@ DB_USER=root
DB_PASSWORD=
DB_DATABASE=gradido_community
MIGRATIONS_TABLE=migrations
MIGRATIONS_DIRECTORY=./migrations/
// This value is set to the default for the built version.
// Therefore you need to overwrite this when using the dev version
// MIGRATIONS_DIRECTORY=./migrations/
MIGRATIONS_DIRECTORY=./build/migrations/

View File

@ -13,7 +13,7 @@ const database = {
const migrations = {
MIGRATIONS_TABLE: process.env.MIGRATIONS_TABLE || 'migrations',
MIGRATIONS_DIRECTORY: process.env.MIGRATIONS_DIRECTORY || './migrations/',
MIGRATIONS_DIRECTORY: process.env.MIGRATIONS_DIRECTORY || './build/migrations/',
}
const CONFIG = { ...database, ...migrations }