Browse Source

refactor: form view field migration script

pull/7610/head
Ramesh Mane 9 months ago
parent
commit
84799a43a6
  1. 5
      packages/nocodb/src/meta/migrations/v2/nc_039_form_view_filds.ts

5
packages/nocodb/src/meta/migrations/v2/nc_039_form_view_filds.ts

@ -4,11 +4,14 @@ import { MetaTable } from '~/utils/globals';
const up = async (knex: Knex) => { const up = async (knex: Knex) => {
await knex.schema.alterTable(MetaTable.FORM_VIEW, (table) => { await knex.schema.alterTable(MetaTable.FORM_VIEW, (table) => {
table.text('subheading').alter(); table.text('subheading').alter();
});
await knex.schema.alterTable(MetaTable.FORM_VIEW, (table) => {
table.text('success_msg').alter(); table.text('success_msg').alter();
}); });
await knex.schema.alterTable(MetaTable.FORM_VIEW_COLUMNS, (table) => { await knex.schema.alterTable(MetaTable.FORM_VIEW_COLUMNS, (table) => {
table.text('label').alter(); table.text('label').alter();
});
await knex.schema.alterTable(MetaTable.FORM_VIEW_COLUMNS, (table) => {
table.text('description').alter(); table.text('description').alter();
}); });
}; };

Loading…
Cancel
Save