Created
November 14, 2009 18:17
-
-
Save clutchski/234675 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
an example illustrating how to run a caribou migration | |
""" | |
import caribou | |
db_path = '/path/to/db.sqlite3' | |
migrations_path = '/path/to/migrations/dir' | |
version = '20091114132332' | |
# upgrade to most recent version | |
caribou.upgrade(db_path, migrations_path) | |
# upgrade to a specific version | |
caribou.upgrade(db_path, migrations_path, version) | |
# downgrade to a specific version | |
caribou.downgrade(db_path, migrations_path, version) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment