mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Replace dots with underscores in MS SQL fk names.
That should help fixing #158 where MS SQL uses the following name for one of its fkey: fk_dbo.track_dbo.artist_artistid. PostgreSQL refuses fk names with dots in it.
This commit is contained in:
parent
13faf3e4f8
commit
95961a42b8
@ -249,7 +249,7 @@ order by SchemaName,
|
||||
:for (name schema table col fschema ftable fcol)
|
||||
:in (mssql-query (format nil "
|
||||
SELECT
|
||||
KCU1.CONSTRAINT_NAME AS 'CONSTRAINT_NAME'
|
||||
REPLACE(KCU1.CONSTRAINT_NAME, '.', '_') AS 'CONSTRAINT_NAME'
|
||||
, KCU1.TABLE_SCHEMA AS 'TABLE_SCHEMA'
|
||||
, KCU1.TABLE_NAME AS 'TABLE_NAME'
|
||||
, KCU1.COLUMN_NAME AS 'COLUMN_NAME'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user