feat: add initial database migration

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2023-10-08 15:08:57 +02:00 committed by Philip Molares
parent 09698579a7
commit f8f198f9c9
7 changed files with 1082 additions and 5 deletions

View file

@ -68,10 +68,10 @@ const routes: Routes = [
password: databaseConfig.password,
database: databaseConfig.database,
autoLoadEntities: true,
synchronize: true, // ToDo: Remove this before release. It should be replaced by database migrations
// https://stackoverflow.com/questions/65222981/typeorm-synchronize-in-production
logging: true,
logger: logger,
migrations: [`**/migrations/${databaseConfig.type}-*{.ts,.js}`],
migrationsRun: true,
};
},
}),