Browse Source

refactor(nocodb): rename to nc_029_webhook

pull/5349/head
Wing-Kam Wong 2 years ago
parent
commit
31ebed69f8
  1. 8
      packages/nocodb/src/lib/migrations/XcMigrationSourcev2.ts
  2. 8
      packages/nocodb/src/lib/migrations/v2/nc_029_webhook.ts

8
packages/nocodb/src/lib/migrations/XcMigrationSourcev2.ts

@ -16,7 +16,7 @@ import * as nc_025_add_row_height from './v2/nc_025_add_row_height';
import * as nc_026_map_view from './v2/nc_026_map_view';
import * as nc_027_add_comparison_sub_op from './v2/nc_027_add_comparison_sub_op';
import * as nc_028_add_enable_scanner_in_form_columns_meta_table from './v2/nc_028_add_enable_scanner_in_form_columns_meta_table';
import * as nc_029_alter_hooklog_response_types from './v2/nc_029_alter_hooklog_response_types';
import * as nc_029_webhook from './v2/nc_029_webhook';
// Create a custom migration source class
export default class XcMigrationSourcev2 {
@ -44,7 +44,7 @@ export default class XcMigrationSourcev2 {
'nc_026_map_view',
'nc_027_add_comparison_sub_op',
'nc_028_add_enable_scanner_in_form_columns_meta_table',
'nc_029_alter_hooklog_response_types',
'nc_029_webhook',
]);
}
@ -90,8 +90,8 @@ export default class XcMigrationSourcev2 {
return nc_027_add_comparison_sub_op;
case 'nc_028_add_enable_scanner_in_form_columns_meta_table':
return nc_028_add_enable_scanner_in_form_columns_meta_table;
case 'nc_029_alter_hooklog_response_types':
return nc_029_alter_hooklog_response_types;
case 'nc_029_webhook':
return nc_029_webhook;
}
}
}

8
packages/nocodb/src/lib/migrations/v2/nc_029_alter_hooklog_response_types.ts → packages/nocodb/src/lib/migrations/v2/nc_029_webhook.ts

@ -14,6 +14,10 @@ const up = async (knex: Knex) => {
table.text('response').alter();
});
}
await knex.schema.alterTable(MetaTable.COLUMNS, (table) => {
table.string('version');
});
};
const down = async (knex) => {
@ -22,6 +26,10 @@ const down = async (knex) => {
table.boolean('response').alter();
});
}
await knex.schema.alterTable(MetaTable.COLUMNS, (table) => {
table.dropColumn('version');
});
};
export { up, down };
Loading…
Cancel
Save