fix: add reference_schema to support again import with FKs all dbs

This commit is contained in:
johnnyfish
2024-09-10 10:30:28 +03:00
committed by Jonathan Fishner
parent ce8ef57304
commit 4d34ade63d
3 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ export const sqliteQuery = `WITH fk_info AS (
'column', fk."from",
'foreign_key_name',
'fk_' || m.name || '_' || fk."from" || '_' || fk."table" || '_' || fk."to", -- Generated foreign key name
'reference_schema', '', -- SQLite does not have schemas
'reference_table', fk."table",
'reference_column', fk."to",
'fk_def',