From 65e08fe187e879ba37c83e38d5c06e5f8f99396c Mon Sep 17 00:00:00 2001 From: porshkevich Date: Wed, 27 Apr 2016 22:43:02 +0300 Subject: [PATCH] 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 --- src/sources/mysql/mysql-cast-rules.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sources/mysql/mysql-cast-rules.lisp b/src/sources/mysql/mysql-cast-rules.lisp index b1c2541..11efc3f 100644 --- a/src/sources/mysql/mysql-cast-rules.lisp +++ b/src/sources/mysql/mysql-cast-rules.lisp @@ -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)