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:
porshkevich 2016-04-27 22:43:02 +03:00 committed by Dimitri Fontaine
parent 44b9ec81c9
commit 65e08fe187

View File

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