π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
on pg, wipe attachment value from text type
Fendy Heryantod832aebca2cd
diff --git a/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts b/packages/nocodb/src/db/sql-client/lib/pg/PgClient.tsindex 3c7ee8fb6e..72570d3c3c 100644--- a/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts+++ b/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts@@ -3041,7 +3041,8 @@ class PGClient extends KnexClient {);}- if (n.dt !== o.dt) {+ // for now, wipe attachment value+ if (n.dt !== o.dt || n.uidt === UITypes.Attachment) {query += this.genQuery(`\nALTER TABLE ?? ALTER COLUMN ?? DROP DEFAULT;\n`,[t, n.cn],