fix: add reference_schema to the postgres import script

This commit is contained in:
johnnyfish
2024-09-05 18:55:07 +03:00
committed by Guy Ben-Aharon
parent 2185f98189
commit 48414dac83
2 changed files with 2 additions and 0 deletions

View File

@@ -62,6 +62,7 @@ WITH fk_info${databaseEdition ? '_' + databaseEdition : ''} AS (
',"table":"', replace(table_name::text, '"', ''), '"',
',"column":"', replace(fk_column::text, '"', ''), '"',
',"foreign_key_name":"', foreign_key_name, '"',
',"reference_schema":"', COALESCE(reference_schema, 'public'), '"',
',"reference_table":"', reference_table, '"',
',"reference_column":"', reference_column, '"',
',"fk_def":"', replace(fk_def, '"', ''),