Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Pymigrate is a tool for you to use python scripts or whatever self runnable scripts as your migration sripts for your data and systme.

Project description

Version: 0.1
Download:http://pypi.python.org/pypi/pymigrate/
Documentation:http://pymigrate.readthedocs.org/
Source:http://github.com/nanfang/pymigrate/
Keywords:Python, Migrate

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

Project details


Release history Release notifications

This version
History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pymigrate-0.1.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page