|
|
@ -95,6 +95,8 @@ exports.runMigrations = async (CouchDB, migrations, options = {}) => { |
|
|
if (!options.tenantIds || !options.tenantIds.length) { |
|
|
if (!options.tenantIds || !options.tenantIds.length) { |
|
|
// run for all tenants
|
|
|
// run for all tenants
|
|
|
tenantIds = await getTenantIds() |
|
|
tenantIds = await getTenantIds() |
|
|
|
|
|
} else { |
|
|
|
|
|
tenantIds = options.tenantIds |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
// single tenancy
|
|
|
// single tenancy
|
|
|
|