Browse Source

refactor(nocodb): lint

pull/5642/head
Wing-Kam Wong 2 years ago
parent
commit
a142a75a2e
  1. 3
      packages/nocodb/src/db/BaseModelSqlv2.ts
  2. 6
      packages/nocodb/src/version-upgrader/ncDateTimeUpgrader.ts

3
packages/nocodb/src/db/BaseModelSqlv2.ts

@ -7,7 +7,6 @@ import { nocoExecute } from 'nc-help';
import { import {
AuditOperationSubTypes, AuditOperationSubTypes,
AuditOperationTypes, AuditOperationTypes,
BoolType,
isSystemColumn, isSystemColumn,
isVirtualCol, isVirtualCol,
RelationTypes, RelationTypes,
@ -57,7 +56,7 @@ import type {
SelectOption, SelectOption,
} from '../models'; } from '../models';
import type { Knex } from 'knex'; import type { Knex } from 'knex';
import type { SortType } from 'nocodb-sdk'; import type { BoolType, SortType } from 'nocodb-sdk';
dayjs.extend(utc); dayjs.extend(utc);

6
packages/nocodb/src/version-upgrader/ncDateTimeUpgrader.ts

@ -4,12 +4,12 @@ import { UITypes } from 'nocodb-sdk';
import { MetaTable } from '../utils/globals'; import { MetaTable } from '../utils/globals';
import Base from '../models/Base'; import Base from '../models/Base';
import Model from '../models/Model'; import Model from '../models/Model';
import NcConnectionMgrv2 from '../utils/common/NcConnectionMgrv2';
import { throwTimeoutError } from './ncUpgradeErrors'; import { throwTimeoutError } from './ncUpgradeErrors';
import type { BaseType } from 'nocodb-sdk'; import type { BaseType } from 'nocodb-sdk';
import type { NcUpgraderCtx } from './NcUpgrader'; import type { NcUpgraderCtx } from './NcUpgrader';
import type { XKnex } from '../db/CustomKnex'; import type { XKnex } from '../db/CustomKnex';
import type { Knex } from 'knex'; import type { Knex } from 'knex';
import NcConnectionMgrv2 from '../utils/common/NcConnectionMgrv2';
dayjs.extend(utc); dayjs.extend(utc);
@ -87,8 +87,8 @@ export default async function ({ ncMeta }: NcUpgraderCtx) {
}; };
for (const model of models) { for (const model of models) {
let disableTriggers = []; const disableTriggers = [];
let enableTriggers = []; const enableTriggers = [];
try { try {
// if the table is missing in database, skip // if the table is missing in database, skip

Loading…
Cancel
Save