Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page