Skip to content

Instantly share code, notes, and snippets.

@zhangyuan
Created February 16, 2017 11:52
Show Gist options
  • Select an option

  • Save zhangyuan/441a6ceddf875e96f8c734ef56f482a8 to your computer and use it in GitHub Desktop.

Select an option

Save zhangyuan/441a6ceddf875e96f8c734ef56f482a8 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
from migrate.versioning import api
url = "sqlite:///project.db"
repository = "migration"
api.version_control(url, repository)
# api.version(repository)
# api.db_version(url, repository)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment