Closed bplunkett-stripe closed 6 months ago
Remove extraneous NOT NULL statement generation. If the parent table column is being altered from NULL -> NOT NULL (or vice versa), then we don't need to generate any SQL for the child table
NOT NULL
NULL
Simplify SQL generation. This also removes false positive ACCESS_EXCLUSIVE_LOCK migration hazards https://github.com/stripe/pg-schema-diff/issues/88
Acceptance tests
Description
Remove extraneous
NOT NULL
statement generation. If the parent table column is being altered fromNULL
->NOT NULL
(or vice versa), then we don't need to generate any SQL for the child tableMotivation
Simplify SQL generation. This also removes false positive ACCESS_EXCLUSIVE_LOCK migration hazards https://github.com/stripe/pg-schema-diff/issues/88
Testing
Acceptance tests