Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flyway Clean on PostgreSQL leaves TYPES #501

flyway opened this issue Jun 25, 2013 · 0 comments

Flyway Clean on PostgreSQL leaves TYPES #501

flyway opened this issue Jun 25, 2013 · 0 comments


Copy link

flyway commented Jun 25, 2013

Original author: (May 30, 2013 21:29:27)

Using PostgreSQL 9.2.
I have a migration of the form:

CREATE TYPE my_type AS (my_type_id integer);

When I execute a "clean" command, it remains in the database. Looking at Flyway's source code, TYPES to clean are listed using the following SQL:
select typname from pg_catalog.pg_type where typcategory in ('P', 'U') and typnamespace in (select oid from pg_catalog.pg_namespace where nspname = ?)

I looked up the TYPE "my_type" in this table and it is of typcategory 'C'.

At this point, I'm not sure if I should be creating my TYPE differently so that it registers as a 'P' or 'U' TYPE (but how?)... or if the SQL query is too restrictive.
Any insight would be helpful.

Thanks in advance.
Patrick Malouin

Original issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

0 participants