python database migration

The actual operation command

1, python .py db init file

2, python xx.py db migrate -m 'version descriptor'

3,python xx.py db upgrade

4, python xx.py db history view the version number

5, python xx.py db downgrade (upgrade) version number

Guess you like

Origin www.cnblogs.com/guo126/p/12444479.html