π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
fix(nocodb): use fk_model_id instead of source id to store tableId
Ramesh Mane11398b3dec82
diff --git a/packages/nocodb-sdk/src/lib/recordTemplate.ts b/packages/nocodb-sdk/src/lib/recordTemplate.tsindex 29e7a012c0..00f6ac18fb 100644--- a/packages/nocodb-sdk/src/lib/recordTemplate.ts+++ b/packages/nocodb-sdk/src/lib/recordTemplate.ts@@ -13,7 +13,7 @@ export interface RecordTemplateType {id?: string;base_id?: string;fk_workspace_id?: string;- source_id?: string;+ fk_model_id?: string;title?: string;description?: string;template_data?: RecordTemplateDataType | string;diff --git a/packages/nocodb/src/meta/migrations/v0/nc_021_record_templates.ts b/packages/nocodb/src/meta/migrations/v0/nc_021_record_templates.tsindex c7ca7914b4..c58c774865 100644--- a/packages/nocodb/src/meta/migrations/v0/nc_021_record_templates.ts+++ b/packages/nocodb/src/meta/migrations/v0/nc_021_record_templates.ts@@ -7,7 +7,7 @@ const up = async (knex: Knex) => {table.string('id', 20).notNullable();table.string('base_id', 20).notNullable().index();table.string('fk_workspace_id', 20).index();- table.string('source_id', 20).notNullable().index();+ table.string('fk_model_id', 20).notNullable().index();table.string('title', 255).notNullable();table.text('description');table.text('template_data').notNullable();