ubuntu, python, alembic 사용

$ alembic init migrations

$ vi alembic.ini
—
[alembic]
# path to migration scripts
script_location = profile
sqlalchemy.url = mysql//profile:profile@localhost/profile
—

$ alembic revision -m "create users table"

$ alembic revision -m "create posts table"

$ alembic upgrade head

댓글