cybertec-postgresql / db_migrator

Other
21 stars 8 forks source link

Remove code duplication during statements generation #37

Closed fljdin closed 1 year ago

fljdin commented 1 year ago

As discussed in another draft PR (https://github.com/cybertec-postgresql/db_migrator/pull/33#issuecomment-1723003708), this one aims to reduce the risk of errors due to code duplication and to gain readability. It removes last statement section in db_migrate_mkforeign(), db_migrate_indexes() and db_migrate_constraints().

Some variables (loc_s, loc_t) have been renamed.

No regression with ora_migrator.