Browse Source
Merge pull request #4617 from Budibase/fix/app-migrations
Fix app list retrieval in migrations
pull/4710/head
Rory Powell
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
packages/backend-core/src/migrations/index.js
|
|
|
@ -36,7 +36,7 @@ const runMigration = async (CouchDB, migration, options = {}) => { |
|
|
|
if (migrationType === exports.MIGRATION_TYPES.GLOBAL) { |
|
|
|
dbNames = [getGlobalDBName()] |
|
|
|
} else if (migrationType === exports.MIGRATION_TYPES.APP) { |
|
|
|
const apps = await getAllApps(CouchDB, migration.opts) |
|
|
|
const apps = await getAllApps(migration.opts) |
|
|
|
dbNames = apps.map(app => app.appId) |
|
|
|
} else { |
|
|
|
throw new Error( |
|
|
|
|