mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-11 16:57:00 +02:00
Fix MS SQL foreign key support.
Avoid registering the first column name twice in the foreign key definition.
This commit is contained in:
parent
4cb83ec6a5
commit
d2a1ac639f
@ -257,9 +257,9 @@ ORDER BY KCU1.CONSTRAINT_NAME, KCU1.ORDINAL_POSITION"
|
|||||||
(pg-fkey
|
(pg-fkey
|
||||||
(make-pgsql-fkey :name fkey-name
|
(make-pgsql-fkey :name fkey-name
|
||||||
:table table
|
:table table
|
||||||
:columns (list col)
|
:columns nil
|
||||||
:foreign-table ftable
|
:foreign-table ftable
|
||||||
:foreign-columns (list fcol)))
|
:foreign-columns nil))
|
||||||
(fkey (maybe-add-fkey table fkey-name pg-fkey
|
(fkey (maybe-add-fkey table fkey-name pg-fkey
|
||||||
:key #'pgloader.pgsql::pgsql-fkey-name)))
|
:key #'pgloader.pgsql::pgsql-fkey-name)))
|
||||||
(push-to-end col (pgloader.pgsql::pgsql-fkey-columns fkey))
|
(push-to-end col (pgloader.pgsql::pgsql-fkey-columns fkey))
|
||||||
|
Loading…
Reference in New Issue
Block a user