joncrlsn / pgdiff

Compares the PostgreSQL schema between two databases and generates SQL statements that can be run manually against the second database to make their schemas match.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ENUM values comparison missing

kkontosis opened this issue · comments

It would be useful to also find differences between defined ENUM types.
I was running pgdiff between two databases to find differences with ALL and this is something that was not detected.

For example:
CREATE TYPE my_type AS ENUM ('a', 'b');
and
CREATE TYPE my_type AS ENUM ('a', 'b', 'c');

Should detect the additional type 'c' in the second database, or at least that the types are different.

Thank you for the suggestion, @kkontosis. I'll see what I can do on this.