Browse Source

feat(nocodb): lookup filter upgrader logic

pull/5106/head
Wing-Kam Wong 2 years ago
parent
commit
bdc919d4ca
  1. 14
      packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104003.ts

14
packages/nocodb/src/lib/version-upgrader/ncFilterUpgrader_0104003.ts

@ -187,6 +187,20 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
ncMeta, ncMeta,
migrateToBlankFilter migrateToBlankFilter
); );
} else if (col.uidt === UITypes.Lookup) {
actions = await removeArithmeticFilters(filter, actions, ncMeta);
actions = await removeEmptyFilters(
filter,
actions,
ncMeta,
migrateToBlankFilter
);
actions = await removeNullFilters(
filter,
actions,
ncMeta,
migrateToBlankFilter
);
} }
} }
await Promise.all(actions); await Promise.all(actions);

Loading…
Cancel
Save