$ 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
$ 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
댓글
댓글 쓰기