π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
rollback changes on unused migations
Fendy Heryanto06a22015008c
diff --git a/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.ts b/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.tsindex 222d70b409..2b622ae35d 100644--- a/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.ts+++ b/packages/nocodb/src/meta/migrations/XcMigrationSourcev2.ts@@ -86,6 +86,7 @@ import * as nc_094_add_meta_to_filter_exp_v2 from '~/meta/migrations/v2/nc_094_aimport * as nc_096_deprecate_unused from '~/meta/migrations/v2/nc_096_deprecate_unused';import * as nc_097_unify_schema from '~/meta/migrations/v2/nc_097_unify_schema';import * as nc_098_default_workspace from '~/meta/migrations/v2/nc_098_default_workspace';+// Create a custom migration source classexport default class XcMigrationSourcev2 {// Must return a Promise containing a list of migrations.diff --git a/packages/nocodb/src/meta/migrations/v0/nc_001_init.ts b/packages/nocodb/src/meta/migrations/v0/nc_001_init.tsindex ee66b8a7ef..716eb9a8aa 100644--- a/packages/nocodb/src/meta/migrations/v0/nc_001_init.ts+++ b/packages/nocodb/src/meta/migrations/v0/nc_001_init.ts@@ -1051,21 +1051,6 @@ const up = async (knex: Knex) => {table.primary(['base_id', 'id']);});- await knex.schema.createTable(MetaTable.RECORD_TEMPLATES, (table) => {- table.string('id', 20).notNullable();- table.string('base_id', 20).notNullable();- table.string('fk_workspace_id', 20);- table.string('source_id', 20).notNullable();- table.string('title', 255).notNullable();- table.text('description');- table.text('template_data').notNullable();- table.integer('usage_count').defaultTo(0);- table.boolean('enabled').defaultTo(true);- table.string('created_by', 20);- table.timestamps(true, true);- table.primary(['base_id', 'id']);- });-await knex.schema.createTable(MetaTable.SNAPSHOT, (table) => {table.string('id', 20).notNullable().primary();table.string('title', 512);diff --git a/packages/nocodb/src/meta/migrations/v2/nc_011.ts b/packages/nocodb/src/meta/migrations/v2/nc_011.tsindex b43bf555ad..cb7d1d7f01 100644--- a/packages/nocodb/src/meta/migrations/v2/nc_011.ts+++ b/packages/nocodb/src/meta/migrations/v2/nc_011.ts@@ -793,28 +793,6 @@ const up = async (knex) => {table.timestamps(true, true);});- await knex.schema.createTable(MetaTable.RECORD_TEMPLATES, (table) => {- table.string('id', 20).primary().notNullable();-- table.string('base_id', 20).notNullable();- table.foreign('base_id').references(`${MetaTableOldV2.BASES}.id`);-- table.string('source_id', 20).notNullable();- table.foreign('source_id').references(`${MetaTable.SOURCES}.id`);-- table.string('title', 255).notNullable();- table.text('description');- table.text('template_data', 'longtext').notNullable();- table.integer('usage_count').defaultTo(0);- table.string('created_by', 20);-- table.timestamps(true, true);-- table.index(['base_id']);- table.index(['source_id']);- table.index(['created_by']);- });-// await knex('nc_plugins').insert([// googleAuth,// ses,diff --git a/packages/nocodb/src/meta/migrations/v2/nc_099_record_templates.ts b/packages/nocodb/src/meta/migrations/v2/nc_099_record_templates.tsdeleted file mode 100644index 5799be9186..0000000000--- a/packages/nocodb/src/meta/migrations/v2/nc_099_record_templates.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * DEPRECATED: This migration has been consolidated into v0/nc_018_record_templates.- * All new migrations should be added to XcMigrationSourcev0.- * This file is kept only because the filesystem does not allow deletion.- */-import type { Knex } from 'knex';--const up = async (_knex: Knex) => {- // No-op: table creation handled by v0/nc_018_record_templates-};--const down = async (_knex: Knex) => {- // No-op-};--export { up, down };diff --git a/packages/nocodb/src/meta/migrations/v2/nc_100_record_templates_enabled.ts b/packages/nocodb/src/meta/migrations/v2/nc_100_record_templates_enabled.tsdeleted file mode 100644index 6eb92c84dc..0000000000--- a/packages/nocodb/src/meta/migrations/v2/nc_100_record_templates_enabled.ts+++ /dev/null@@ -1,16 +0,0 @@-/**- * DEPRECATED: The enabled column is now included in v0/nc_018_record_templates.- * All new migrations should be added to XcMigrationSourcev0.- * This file is kept only because the filesystem does not allow deletion.- */-import type { Knex } from 'knex';--const up = async (_knex: Knex) => {- // No-op: enabled column now created in v0/nc_018_record_templates-};--const down = async (_knex: Knex) => {- // No-op-};--export { up, down };