Browse Source

fix: corrections

pull/9807/head
Pranav C 2 weeks ago
parent
commit
365a4ca688
  1. 2
      packages/nocodb/src/meta/migrations/v2/nc_066_personal_view.ts
  2. 2
      packages/nocodb/src/models/Model.ts
  3. 2
      packages/nocodb/src/models/View.ts

2
packages/nocodb/src/meta/migrations/v2/nc_066_personal_view.ts

@ -4,7 +4,7 @@ import { MetaTable } from '~/utils/globals';
const up = async (knex: Knex) => {
await knex.schema.alterTable(MetaTable.VIEWS, (table) => {
table.boolean('is_personal').defaultTo(false);
table.boolean('created_by', 20).index();
table.string('created_by', 20).index();
});
};

2
packages/nocodb/src/models/Model.ts

@ -1154,8 +1154,10 @@ export default class Model implements TableType {
context: NcContext,
{
modelId,
userId
}: {
modelId: string;
userId?: string;
},
ncMeta = Noco.ncMeta,
) {

2
packages/nocodb/src/models/View.ts

@ -74,7 +74,7 @@ export default class View implements ViewType {
type: ViewTypes;
lock_type?: ViewType['lock_type'];
created_by?: string;
is_personal?: string;
is_personal?: boolean;
fk_model_id: string;
model?: Model;

Loading…
Cancel
Save