mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
When migrating from MySQL, add columns names to the COPY command. Fixes #132.
This commit is contained in:
parent
3cbaea52f5
commit
1b859d269c
@ -149,6 +149,9 @@
|
||||
;; and start another task to push that data from the queue to PostgreSQL
|
||||
(lp:submit-task channel #'pgloader.pgsql:copy-from-queue
|
||||
(target-db mysql) (target mysql) queue
|
||||
:columns (mapcar #'apply-identifier-case
|
||||
(mapcar #'mysql-column-name
|
||||
(fields mysql)))
|
||||
:truncate truncate)
|
||||
|
||||
;; now wait until both the tasks are over
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user