Spaces:
Sleeping
Sleeping
File size: 387 Bytes
f4656a0 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 'use strict';
require('dotenv').config();
const { initDatabase } = require('../config/database');
const logger = require('./logger');
async function migrate() {
logger.info('Running database migration...');
await initDatabase();
logger.info('Migration complete.');
process.exit(0);
}
migrate().catch((err) => {
logger.error('Migration failed:', err);
process.exit(1);
});
|