Merge branch 'master' into fix/BUDI-8258-update-presence
This commit is contained in:
commit
fcc38d4058
|
@ -1,4 +1,4 @@
|
||||||
import { context, locks } from "@budibase/backend-core"
|
import { context, locks, logging } from "@budibase/backend-core"
|
||||||
import { LockName, LockType } from "@budibase/types"
|
import { LockName, LockType } from "@budibase/types"
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -20,6 +20,7 @@ export async function processMigrations(
|
||||||
resource: appId,
|
resource: appId,
|
||||||
},
|
},
|
||||||
async () => {
|
async () => {
|
||||||
|
try {
|
||||||
await context.doInAppMigrationContext(appId, async () => {
|
await context.doInAppMigrationContext(appId, async () => {
|
||||||
let currentVersion = await getAppMigrationVersion(appId)
|
let currentVersion = await getAppMigrationVersion(appId)
|
||||||
|
|
||||||
|
@ -51,6 +52,10 @@ export async function processMigrations(
|
||||||
currentVersion = id
|
currentVersion = id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} catch (err) {
|
||||||
|
logging.logAlert("Failed to run app migration", err)
|
||||||
|
throw err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue