mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(database): log errors for already applied migrations
This commit is contained in:
1 parent
8e15e89858
commit
529b53c66c
1 file changed
+2
-1
@@ -185,8 +185,9 @@ function runMigrations(sqliteDb: Database.Database): void {
|
||||
try {
|
||||
sqliteDb.exec(stmt);
|
||||
} catch (error) {
|
||||
// Ignore errors for migrations that may have already been applied
|
||||
// Log and ignore errors for migrations that may have already been applied
|
||||
// (e.g., "duplicate column name" for ALTER TABLE ADD COLUMN)
|
||||
console.debug('Migration already applied or failed:', error);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user