From 4fc0f3ef23221056a1cc82ccedd7fd1410be2d9b Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 15 Feb 2024 09:15:05 +0000 Subject: [PATCH] fix(nocodb): add migration script to update form view field type --- .../migrations/v2/nc_039_form_view_filds.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/nocodb/src/meta/migrations/v2/nc_039_form_view_filds.ts diff --git a/packages/nocodb/src/meta/migrations/v2/nc_039_form_view_filds.ts b/packages/nocodb/src/meta/migrations/v2/nc_039_form_view_filds.ts new file mode 100644 index 0000000000..bc6428c6ea --- /dev/null +++ b/packages/nocodb/src/meta/migrations/v2/nc_039_form_view_filds.ts @@ -0,0 +1,18 @@ +import type { Knex } from 'knex'; +import { MetaTable } from '~/utils/globals'; + +const up = async (knex: Knex) => { + await knex.schema.alterTable(MetaTable.FORM_VIEW, (table) => { + table.text('subheading').alter(); + table.text('success_msg').alter(); + }); + + await knex.schema.alterTable(MetaTable.FORM_VIEW_COLUMNS, (table) => { + table.text('label').alter(); + table.text('description').alter(); + }); +}; + +const down = async (knex: Knex) => {}; + +export { up, down };