mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
feat: add initial database migration
Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
09698579a7
commit
f8f198f9c9
7 changed files with 1082 additions and 5 deletions
|
@ -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,
|
||||
};
|
||||
},
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue