When migrating from MySQL, add columns names to the COPY command. Fixes #132.

This commit is contained in:
Dimitri Fontaine 2014-12-12 15:12:54 +01:00
parent 3cbaea52f5
commit 1b859d269c

View File

@ -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