Browse Source

fix: skip is_local condition in OSS

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/7373/head
Pranav C 10 months ago
parent
commit
07b8c5d270
  1. 15
      packages/nocodb/src/version-upgrader/ncXcdbCreatedAndUpdatedSystemFieldsUpgrader.ts

15
packages/nocodb/src/version-upgrader/ncXcdbCreatedAndUpdatedSystemFieldsUpgrader.ts

@ -2,6 +2,7 @@ import { UITypes } from 'nocodb-sdk';
import type { NcUpgraderCtx } from './NcUpgrader'; import type { NcUpgraderCtx } from './NcUpgrader';
import type { MetaService } from '~/meta/meta.service'; import type { MetaService } from '~/meta/meta.service';
import type { Base } from '~/models'; import type { Base } from '~/models';
import Noco from '~/Noco';
import { MetaTable } from '~/utils/globals'; import { MetaTable } from '~/utils/globals';
import { Column, Model, Source } from '~/models'; import { Column, Model, Source } from '~/models';
import { import {
@ -369,11 +370,15 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
eq: 1, eq: 1,
}, },
}, },
{ ...(Noco.isEE()
is_local: { ? [
eq: 1, {
}, is_local: {
}, eq: 1,
},
},
]
: []),
], ],
}, },
}); });

Loading…
Cancel
Save