- To create the virtual env:
virtualenv <name>
- To use the virtual env:
source <nome>/bin/activate
- To install dependencies:
pip install -r requirements.txt
- Install MySQL 5.7:
brew install [email protected]
- To install dependencies:
LDFLAGS=-L/usr/local/opt/openssl/lib pip install -r requirements.txt
python api.py
alembic revision
It will create a new script under ~/alembic/versions
Docs: https://alembic.sqlalchemy.org/en/latest/ops.html#ops
alembic upgrade head
It'll take the migrations that are still pending
If you inform a revision instead of head
, it'll rerun that revision