fix sqlite bootstrap and site announcement migration
This commit is contained in:
1 parent
79146af16a
commit
9bc804c121
4 files changed
+246
-7
No files matched your search
@@ -7,11 +7,10 @@ let sqliteMigrationsBootstrapped = false;
|
||||
|
||||
export async function runSqliteRuntimeMigrations(): Promise<void> {
|
||||
const migrateModule = await import('./db/migrate.js');
|
||||
if (sqliteMigrationsBootstrapped) {
|
||||
migrateModule.runSqliteMigrations();
|
||||
return;
|
||||
if (!sqliteMigrationsBootstrapped) {
|
||||
sqliteMigrationsBootstrapped = true;
|
||||
}
|
||||
sqliteMigrationsBootstrapped = true;
|
||||
migrateModule.runSqliteMigrations();
|
||||
}
|
||||
|
||||
type EnsureRuntimeDatabaseReadyInput = {
|
||||
|
||||
Reference in new issue
Block a user