Skip to main content
Version:
0.1
Download:

http://pypi.python.org/pypi/pymigrate/

Documentation:

http://pymigrate.readthedocs.org/

Source:

http://github.com/nanfang/pymigrate/

Keywords:

Python, Migrate

Documentation

http://pymigrate.readthedocs.org/

Install

Use pip:

pip install pymigrate

Use easy_install:

easy_install pymigrate

Usage

Migrate scripts should be in one folder and with a prefix in name as index. The index is the order of execution of the scripts. eg:

MIGRATE_FOLDER/001_create_user_schema.py
               002_create_group_schema.py
               003_init_user_data.py

Then, run the migrate scripts by:

pymigrate MIGRATE_FOLDER

After migration is done, we can show the trace by:

pymigrate -t MIGRATE_FOLDER

When you have new change to apply to the system, just add more scripts into the MIGRATE_FOLDER, and use index for the execution order. If you just clear the system(like drop the database and recreate) and want to re-run the migrate sequence, you need clear the trace:

pymigrate -c MIGRATE_FOLDER

Metadata

Release files for pymigrate 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymigrate 0.1
File Size Uploaded
pymigrate-0.1.tar.gz 2.1 kB Details

Release files / pymigrate-0.1.tar.gz

Download URL pymigrate-0.1.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8e78f05ee1dbce5184a6b6dd5d45f4bab1171f748441b0989fa4521a93f5c7e6
BLAKE2b-256 checksum
How to use checksums
4c47d1959f11ff28ca1e2e1f1ecc0ead912f3fe46894d20611f9e6e3d839d729
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page