Bug fix CREATE TYPE in schema (previous patch).

The previous patch fixed CREATE TYPE so that ENUM types are created in the
same schema than the table using them, but failed to update the DROP TYPE
statements to also target this schema...
This commit is contained in:
Dimitri Fontaine 2017-08-10 21:19:25 +02:00
parent 073a5c1e37
commit 952e7da191

View File

@ -32,8 +32,11 @@
(sqltype-extra sqltype))))))
(defmethod format-drop-sql ((sqltype sqltype) &key (stream nil) cascade if-exists)
(format stream "DROP TYPE~:[~; IF EXISTS~] ~a~@[ CASCADE~];"
if-exists (sqltype-name sqltype) cascade))
(format stream "DROP TYPE~:[~; IF EXISTS~] ~@[~a.~]~a~@[ CASCADE~];"
if-exists
(schema-name (sqltype-schema sqltype))
(sqltype-name sqltype)
cascade))
;;;