Basic migrations support for peewee ORM
Project description
Base migrations support for peewee ORM
Migration management
- Interactive migrator config creation
migrator -c your_app.cfg create_config
- List your migrations
migrator -c your_app.cfg list
- Make auto migration from current DB state
migrator -c your_app.cfg make –from db
- Make auto migration from another migration
migrator -c your_app.cfg make –from rev –rev migration_hash
- Make auto migration from latest migration
migrator -c your_app.cfg make –from last
- Make empty migration (Based on current MODELS_PATH state)
migrator -c you_app.cfg make –from empty
- Apply migration
migrator -c your_app.cfg apply migration_hash
Required migrations
- Mark migration as required
migrator -c your_app.cfg require migration_hash
- Mark migration as required after another migration
migrator -c your_app.cfg require migration_hash –after another_hash
- Apply all required migrations at once
migrator -c your_app.cfg up
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
peewee-migrator-0.0.1.dev0.tar.gz
(13.2 kB
view hashes)
Close
Hashes for peewee-migrator-0.0.1.dev0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7850ca24aa0e84b504041034d438f7d82a6f1f32a6c353e384649ab7e991b153 |
|
MD5 | 5d76c7942a458714529d3cfa8ab71885 |
|
BLAKE2b-256 | 63095d67a71ffec4aaf4501152f7df5a16060204cf4e36846404981f8727b5ce |