1.0.11
This commit is contained in:
1 parent
fe48d63164
commit
a3cc26d958
35 files changed
+2045
-273
No files matched your search
@@ -153,7 +153,8 @@ export const sql = createConnection();
|
||||
|
||||
// Initialize schema (runs async but we handle it)
|
||||
initializeSchema(sql).catch((error) => {
|
||||
console.error('Database initialization failed:', error);
|
||||
const errorMsg = error instanceof Error ? error.message : String(error);
|
||||
console.error('[DB] Database initialization failed:', errorMsg);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
||||
@@ -194,7 +194,8 @@ function readMigrationJournal(migrationsFolder: string): MigrationJournal | null
|
||||
} catch (error) {
|
||||
const config = getConfig();
|
||||
if (config.verboseLogging) {
|
||||
console.error('Failed to read migration journal:', error);
|
||||
const errorMsg = error instanceof Error ? error.message : String(error);
|
||||
console.error('[DB] Failed to read migration journal:', errorMsg);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -986,7 +987,8 @@ export async function getDatabaseSchemaVersion(): Promise<SchemaInfo> {
|
||||
}
|
||||
return { version: null, date: null };
|
||||
} catch (e) {
|
||||
console.error('Error getting schema version:', e);
|
||||
const errorMsg = e instanceof Error ? e.message : String(e);
|
||||
console.error('[DB] Error getting schema version:', errorMsg);
|
||||
return { version: null, date: null };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user