-
Notifications
You must be signed in to change notification settings - Fork 13
Database migrations
Friedrich Lindenberg edited this page Jun 6, 2015
·
1 revision
- Make sure you're in the virtualenv for SpenDB and run
migrate script "<description>" migration
. Replace<description>
with a description for your change. For instance, "Add terms column". - A new file will be created in
migration/versions
. The output ofmigrate
will have the filename for it. - Edit the file and add migration commands. Look into
sqlalchemy-migrate documentation <https://sqlalchemy-migrate.readthedocs.org/en/latest/versioning.html#making-schema-changes>
_ or other migrations inmigration/versions
for help on how to write a migration. - Once you're done writing the migration, run it with
ostool db migrate
.
If you are stuck with the installation or usage of SpenDB, please: search for existing bug reports or file an issue, or message the spendb mailing list.