db: voeg ALTER TABLE migratie toe voor bestaande databases zonder deletedAt
This commit is contained in:
parent
d0dd2f4e39
commit
e93d12565e
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ export async function initDatabase(): Promise<void> {
|
|||
deletedAt TEXT
|
||||
);
|
||||
`)
|
||||
try {
|
||||
await db.execAsync('ALTER TABLE measurements ADD COLUMN deletedAt TEXT')
|
||||
} catch {}
|
||||
}
|
||||
|
||||
export async function insertMeasurement(m: Measurement): Promise<void> {
|
||||
|
|
|
|||
Loading…
Reference in a new issue