mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
fix: only save truthy values on wrapper table options
This commit is contained in:
1 parent
5ec623b290
commit
d0064bf61a
1 file changed
+4
-2
@@ -101,11 +101,13 @@ export function getCreateFDWSql({
|
||||
options (
|
||||
${Object.entries(newTable)
|
||||
.filter(
|
||||
([key]) =>
|
||||
([key, value]) =>
|
||||
key !== 'table_name' &&
|
||||
key !== 'schema_name' &&
|
||||
key !== 'columns' &&
|
||||
key !== 'index'
|
||||
key !== 'index' &&
|
||||
key !== 'is_new_schema' &&
|
||||
Boolean(value)
|
||||
)
|
||||
.map(([key, value]) => `${key} '${value}'`)
|
||||
.join(',\n ')}
|
||||
|
||||
Reference in new issue
Block a user