Browse Source

feat: button migration

pull/9807/head
mertmit 2 weeks ago
parent
commit
165b54fbc5
  1. 20
      packages/nocodb/src/meta/migrations/v2/nc_066_ai_button.ts

20
packages/nocodb/src/meta/migrations/v2/nc_066_ai_button.ts

@ -0,0 +1,20 @@
import type { Knex } from 'knex';
import { MetaTable } from '~/utils/globals';
const up = async (knex: Knex) => {
await knex.schema.alterTable(MetaTable.COL_BUTTON, (table) => {
table.string('fk_integration_id', 20);
table.string('model', 255);
table.text('output_column_ids');
});
};
const down = async (knex: Knex) => {
await knex.schema.alterTable(MetaTable.COL_BUTTON, (table) => {
table.dropColumn('fk_integration_id');
table.dropColumn('model');
table.dropColumn('output_column_ids');
});
};
export { up, down };
Loading…
Cancel
Save