The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix updateTable whereby the check against defualt value is wrong
Joshen Limb234d4a2fd80
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.tsindex f8af6b0ad1b..61720ea7157 100644--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.utils.ts@@ -120,7 +120,7 @@ export const generateUpdateColumnPayload = (if (!isEqual(originalColumn.format, type)) {payload.type = type}- if (!isEqual(originalColumn.default_value, defaultValue)) {+ if (!isEqual(unescapeLiteral(originalColumn.default_value as string), defaultValue)) {payload.defaultValue = defaultValuepayload.defaultValueFormat =isNull(defaultValue) || isSQLExpression(defaultValue)