Files
GMW/services/discord-gateway/src/shared/database/migrateCli.ts
T

15 lines
370 B
TypeScript
Raw Normal View History

import { createChildLogger } from "../../shared/logger/logger.js";
import { runMigrations } from "./migrate.js";
const logger = createChildLogger("migrate-cli");
runMigrations()
.then(() => {
logger.info("Migrations completed");
process.exit(0);
})
.catch((error: unknown) => {
logger.error({ error }, "Migration failed");
process.exit(1);
});