Save version as string
This commit is contained in:
parent
bd8c52094b
commit
8c1d0d1e4e
|
@ -3,7 +3,7 @@ import { Database, DocumentType, Document } from "@budibase/types"
|
||||||
|
|
||||||
export interface AppMigrationDoc extends Document {
|
export interface AppMigrationDoc extends Document {
|
||||||
version: string
|
version: string
|
||||||
history: Record<string, { runAt: number }>
|
history: Record<string, { runAt: string }>
|
||||||
}
|
}
|
||||||
|
|
||||||
const EXPIRY_SECONDS = Duration.fromDays(1).toSeconds()
|
const EXPIRY_SECONDS = Duration.fromDays(1).toSeconds()
|
||||||
|
@ -78,7 +78,7 @@ export async function updateAppMigrationMetadata({
|
||||||
version,
|
version,
|
||||||
history: {
|
history: {
|
||||||
...appMigrationDoc.history,
|
...appMigrationDoc.history,
|
||||||
[version]: { runAt: Date.now() },
|
[version]: { runAt: new Date().toISOString() },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
await db.put(updatedMigrationDoc)
|
await db.put(updatedMigrationDoc)
|
||||||
|
|
Loading…
Reference in New Issue