π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
default value is stored as raw
Fendy Heryanto2593cbc1fcd3
diff --git a/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts b/packages/nocodb/src/db/sql-client/lib/pg/PgClient.tsindex 4ac00edf37..a7f4b3d91c 100644--- a/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts+++ b/packages/nocodb/src/db/sql-client/lib/pg/PgClient.ts@@ -3032,7 +3032,11 @@ class PGClient extends KnexClient {query += n.rqd ? ' NOT NULL' : ' NULL';query += defaultValue ? ` DEFAULT ${defaultValue}` : '';query += n.unique ? ` UNIQUE` : '';- query = this.genQuery(`ALTER TABLE ?? ${query};`, [t], shouldSanitize);+ query = this.genQuery(+ `ALTER TABLE ?? ?;`,+ [t, this.sqlClient.raw(query)],+ shouldSanitize,+ );} else {if (n.cn !== o.cn) {query += this.genQuery(