diff --git a/packages/nocodb/src/meta/migrations/v2/nc_066_ai_button.ts b/packages/nocodb/src/meta/migrations/v2/nc_066_ai_button.ts new file mode 100644 index 0000000000..156cf250de --- /dev/null +++ b/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 };