Files
mv2_simple_crx/server/scripts/db_sync.js
2026-03-26 20:56:06 +08:00

7 lines
209 B
JavaScript

import { sequelize } from '../models/index.js';
await sequelize.sync({ alter: true });
// eslint-disable-next-line no-console
console.log(`[${new Date().toLocaleString()}] sync ok`);
await sequelize.close();