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:
parent
ed45a84e5a
commit
602dc3d098
1 changed files with 1 additions and 1 deletions
|
|
@ -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(`
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue