Skip to content

Commit 25ab51b

Browse files
committed
fix: remove redundant COALESCE from export-meta (csv-to-pg handles it)
1 parent a6318b7 commit 25ab51b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pgpm/export/src/export-meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const exportMeta = async ({ opts, dbname, database_id }: ExportMetaParams
187187
await queryAndParse('field_module', `SELECT * FROM metaschema_modules_public.field_module WHERE database_id = $1 ORDER BY id`);
188188
await queryAndParse('table_module', `SELECT * FROM metaschema_modules_public.table_module WHERE database_id = $1 ORDER BY id`);
189189
await queryAndParse('table_template_module', `SELECT * FROM metaschema_modules_public.table_template_module WHERE database_id = $1 ORDER BY id`);
190-
await queryAndParse('secure_table_provision', `SELECT *, COALESCE(fields, '{}') AS fields, COALESCE(grant_privileges, '{}') AS grant_privileges FROM metaschema_modules_public.secure_table_provision WHERE database_id = $1 ORDER BY id`);
190+
await queryAndParse('secure_table_provision', `SELECT * FROM metaschema_modules_public.secure_table_provision WHERE database_id = $1 ORDER BY id`);
191191
await queryAndParse('uuid_module', `SELECT * FROM metaschema_modules_public.uuid_module WHERE database_id = $1 ORDER BY id`);
192192
await queryAndParse('default_ids_module', `SELECT * FROM metaschema_modules_public.default_ids_module WHERE database_id = $1 ORDER BY id`);
193193
await queryAndParse('denormalized_table_field', `SELECT * FROM metaschema_modules_public.denormalized_table_field WHERE database_id = $1 ORDER BY id`);

0 commit comments

Comments
 (0)