mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 15:27:00 +02:00
fix type drop to cascade (#393)
if you have function or operator with type which is removed, you will have error error: cannot drop type because other objects depend on it
This commit is contained in:
parent
44b9ec81c9
commit
65e08fe187
@ -189,7 +189,7 @@
|
||||
(let* ((type-name
|
||||
(get-enum-type-name (mysql-column-table-name col)
|
||||
(mysql-column-name col))))
|
||||
(format nil "DROP TYPE IF EXISTS ~a;" type-name)))
|
||||
(format nil "DROP TYPE IF EXISTS ~a CASCADE;" type-name)))
|
||||
|
||||
(get-create-enum (mysql-column-table-name col)
|
||||
(mysql-column-name col)
|
||||
|
Loading…
Reference in New Issue
Block a user