mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Fix SQL types creation: consider views too.
When migrating views from e.g. MySQL it is necessary to consider the user defined SQL types (ENUMs) those views might be using.
This commit is contained in:
parent
ad56cf808b
commit
320a545533
@ -15,7 +15,8 @@
|
||||
"Create the needed data types for given CATALOG."
|
||||
(let ((sqltype-list))
|
||||
;; build the sqltype list
|
||||
(loop :for table :in (table-list catalog)
|
||||
(loop :for table :in (append (table-list catalog)
|
||||
(view-list catalog))
|
||||
:do (loop :for column :in (table-column-list table)
|
||||
:do (when (typep (column-type-name column) 'sqltype)
|
||||
(pushnew (column-type-name column) sqltype-list
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user