apgdiff
apgdiff copied to clipboard
Incorrect output when only inheriting a table
Suppose I have a table ENUM with 2 columns, ID and TEXT, used as a muster for "master tables".
Suppose I add a table ENUM_whatever_TYPES: CREATE TABLE "ENUM_whatever_TYPES" () INHERITS ("ENUM"); So this new table is just inheriting, not adding any new columns.
If I diff this, I get: CREATE TABLE "ENUM_whatever_TYPES" ) INHERITS (ENUM);
You will notice that there are 2 problems: the opening parenthesis is missing, and the table name is missing quotation marks.
The problem with the missed parenthesis is gone.