#!/usr/bin/env node
'use strict';

const { closeDb, getDb, getDbPath } = require('../db/database');

try {
  getDb();
  console.log(`Database migrations complete for ${getDbPath()}`);
  closeDb();
} catch (err) {
  console.error('Database migration failed:', err.message || err);
  closeDb();
  process.exit(1);
}
