feat(database): run migration

This commit is contained in:
Pihkaal
2025-12-04 22:18:57 +01:00
parent b007f0a892
commit 56b2312f51
7 changed files with 194 additions and 1 deletions

View File

@@ -3,6 +3,10 @@ import { Client, GatewayIntentBits, Partials } from "discord.js";
import { setupBotMode } from "~/modes/bot";
import { setupUserMode } from "~/modes/user";
import { parseArgs } from "~/utils/cli";
import { runMigrations } from "@lbf-bot/database";
console.log("Running database migrations...");
await runMigrations();
const mode = parseArgs(process.argv.slice(2));