py-auto-migrate has added a new feature: --dep
You can use the --dep option during migration to migrate tables that have foreign keys in the source table to the target database.
Example :
py-auto-migrate migrate \
--source "postgresql://user:pass@localhost:5432/mydb" \
--target "mongodb://user:pass@localhost:27017/mydb" \
--table orders \
--dep
This feature has been added to the py-auto-migrate package since version v0.7.2 and you can use it.
In addition, the source database must be a relational database.
Top comments (0)