Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Handling of datatypes when migrating schema #21
We are currently evaluating pg_chameleon for migrating our database from mysql to postgresql with minimal downtime.
One blocking issue we found is that in mysql booleans are represented as tinyint(1) or bit(1) while in postgresql our ORM mapper expects real booleans.
We didn't find a way to do this kind of transformation with pg_chameleon. Other tools like pgloader have this built in.
Question is can this functionality be added?
the override is possible, however the risk of breaking the replica is very concrete.
@agseekda you can test the functionality on the branch type_override. The configuration file requires a mapping for the type override. the configuration-example.yaml have the example override for tinyint(1).