fordfrog / apgdiff

Another PostgreSQL Diff Tool
http://www.apgdiff.com
MIT License
355 stars 138 forks source link

Support ALTER COLUMN ... SET NOT NULL #209

Closed mjr6140 closed 7 years ago

mjr6140 commented 7 years ago

This was manifesting on a table that inherited a column from a parent then set it to not null in the pg_dump via:

ALTER TABLE ONLY table_name ALTER COLUMN inherited_column_name SET NOT NULL;

This change makes this parse successfully.

chadfurman commented 7 years ago

Looks safe. Can we get a second opinion? Someone commit to pulling this down and trying it out?

chadfurman commented 7 years ago

Merging this. We'll fix anything that comes up. Thanks for your hard work.