minor backend changes
This commit is contained in:
1 parent
1bda64003c
commit
69afaecaa4
4 files changed
+13
-7
No files matched your search
+2
-1
@@ -55,12 +55,13 @@ app.use('/api/v1', routes);
|
||||
const relations = require('./db/relations.js');
|
||||
const sequelizeHooks = require('./db/sequelizeHooks.js');
|
||||
const { initializeGenres, initializeData } = require('./db/dataInitializer.js');
|
||||
|
||||
console.log(`Syning database schema...`);
|
||||
sequelize
|
||||
// .sync({force: true}) // will drop all tables and recreate them.
|
||||
// .sync({ alter: true }) // will attempt to automatically alter tables to fit the model definitions.
|
||||
.sync()
|
||||
.then((result) => {
|
||||
console.log(`Database schema synced...`);
|
||||
initializeData();
|
||||
|
||||
app.listen(PORT, () => {
|
||||
|
||||
Reference in new issue
Block a user