forked from jsnbuchanan/crowd-funder-for-time-pwa
fix: remove the 'migrations' table creation that is done elsewhere
This commit is contained in:
@@ -156,12 +156,6 @@ const MIGRATIONS = [
|
|||||||
|
|
||||||
-- Add hasBackedUpSeed field to settings (from registration-prompt-parity)
|
-- Add hasBackedUpSeed field to settings (from registration-prompt-parity)
|
||||||
ALTER TABLE settings ADD COLUMN hasBackedUpSeed BOOLEAN DEFAULT FALSE;
|
ALTER TABLE settings ADD COLUMN hasBackedUpSeed BOOLEAN DEFAULT FALSE;
|
||||||
|
|
||||||
-- Create migrations tracking table
|
|
||||||
CREATE TABLE IF NOT EXISTS migrations (
|
|
||||||
name TEXT PRIMARY KEY,
|
|
||||||
applied_at TEXT NOT NULL DEFAULT (datetime('now'))
|
|
||||||
);
|
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -66,13 +66,13 @@ export class CapacitorPlatformService implements PlatformService {
|
|||||||
return this.initializationPromise;
|
return this.initializationPromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start initialization
|
|
||||||
this.initializationPromise = this._initialize();
|
|
||||||
try {
|
try {
|
||||||
|
// Start initialization
|
||||||
|
this.initializationPromise = this._initialize();
|
||||||
await this.initializationPromise;
|
await this.initializationPromise;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(
|
logger.error(
|
||||||
"[CapacitorPlatformService] Initialize method failed:",
|
"[CapacitorPlatformService] Initialize database method failed:",
|
||||||
error,
|
error,
|
||||||
);
|
);
|
||||||
this.initializationPromise = null; // Reset on failure
|
this.initializationPromise = null; // Reset on failure
|
||||||
|
|||||||
Reference in New Issue
Block a user