mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-05 10:56:10 +02:00
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:
parent
073a5c1e37
commit
952e7da191
@ -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))
|
||||
|
||||
|
||||
;;;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user