1
This commit is contained in:
6
server/scripts/db_sync.js
Normal file
6
server/scripts/db_sync.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { sequelize } from '../models/index.js';
|
||||
|
||||
await sequelize.sync({ alter: true });
|
||||
// eslint-disable-next-line no-console
|
||||
console.log('sync ok');
|
||||
await sequelize.close();
|
||||
Reference in New Issue
Block a user