Migrations packageΒΆ

Shabti uses the sqlalchemy-migrate utility for running database migrations with SQLAlchemy. Shabti integrates a number of migration tasks with paster. See the migrate documentation and source code for an explanation of these commands; they are just summarized below for convenience.

$ paster migrate config-file migration-command
[–dburi=uri] [–repository=repo_dir] [–version=version] [–version_table=version_table] [–preview_py] [–preview_sql]The config-file argument is the name of the configuration file (e.g. development.ini). The migration-command argument may be one of the following:

commit

test

version

db_version

source

upgrade

downgrade

drop_version_control

Previous topic

DemoController.privindex

Next topic

Commands added to Paster

This Page