fix: correct MIGRATIONS_DIR path in migrate.ts

Path was resolving to repo root instead of server/migrations/.
Changed from two '..' segments to one.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Aaron Wood 2026-04-10 23:59:55 -04:00
parent ed45a84e5a
commit 602dc3d098

View file

@ -4,7 +4,7 @@ import path from "path";
import { fileURLToPath } from "url"; import { fileURLToPath } from "url";
const __dirname = path.dirname(fileURLToPath(import.meta.url)); const __dirname = path.dirname(fileURLToPath(import.meta.url));
const MIGRATIONS_DIR = path.join(__dirname, "..", "..", "migrations"); const MIGRATIONS_DIR = path.join(__dirname, "..", "migrations");
export async function runMigrations(pool: Pool): Promise<void> { export async function runMigrations(pool: Pool): Promise<void> {
await pool.execute(` await pool.execute(`