create database structure
This commit is contained in:
parent
e5b5d7e67d
commit
ad6ee64565
15 changed files with 483 additions and 14 deletions
|
|
@ -16,11 +16,13 @@ app.use(errorHandler);
|
|||
|
||||
async function startServer() {
|
||||
try {
|
||||
console.log("starting server")
|
||||
// Initialize database
|
||||
await AppDataSource.initialize();
|
||||
console.log("Data Source initialized");
|
||||
|
||||
// Run pending migrations
|
||||
console.log(AppDataSource.migrations);
|
||||
await AppDataSource.runMigrations();
|
||||
console.log("Migrations executed");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue