DEV Community

Kasra Khaksar
Kasra Khaksar

Posted on

v0.7.2: One of the biggest updates to py-auto-migrate

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
Enter fullscreen mode Exit fullscreen mode

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.

Project links :

GitHub
PyPI

Top comments (0)