PR comments.
This commit is contained in:
parent
b20db4d22a
commit
e3f4e744ab
|
@ -1,12 +1,7 @@
|
|||
import { tenancy, logging } from "@budibase/backend-core"
|
||||
import { plugins } from "@budibase/pro"
|
||||
import env from "../../environment"
|
||||
|
||||
export const run = async () => {
|
||||
// only a self hosted op
|
||||
if (!env.SELF_HOSTED) {
|
||||
return
|
||||
}
|
||||
try {
|
||||
await tenancy.doInTenant(tenancy.DEFAULT_TENANT_ID, async () => {
|
||||
await plugins.checkPluginQuotas()
|
||||
|
|
|
@ -70,12 +70,14 @@ export const buildMigrations = () => {
|
|||
break
|
||||
}
|
||||
case MigrationName.PLUGIN_COUNT: {
|
||||
serverMigrations.push({
|
||||
...definition,
|
||||
fn: pluginCount.run,
|
||||
silent: !!env.SELF_HOSTED,
|
||||
preventRetry: false,
|
||||
})
|
||||
if (env.SELF_HOSTED) {
|
||||
serverMigrations.push({
|
||||
...definition,
|
||||
fn: pluginCount.run,
|
||||
silent: !!env.SELF_HOSTED,
|
||||
preventRetry: false,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue