fix: expose migration start evidence
This commit is contained in:
@@ -866,6 +866,7 @@ function externalPostgresMigrationRunner() {
|
||||
'const files = (await readdir(root)).filter((name) => /^\\d+_.*\\.sql$/u.test(name)).sort();',
|
||||
'const connectionString = process.env.DATABASE_URL;',
|
||||
'if (!connectionString) throw new Error("DATABASE_URL is required");',
|
||||
'console.error(JSON.stringify({ event: "hwlab-runtime-migration-started", fileCount: files.length, valuesPrinted: false }));',
|
||||
'const pool = new Pool({ connectionString, max: 1 });',
|
||||
'try {',
|
||||
' for (const file of files) {',
|
||||
|
||||
Reference in New Issue
Block a user