Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit b338db15 authored by Dorian Turba's avatar Dorian Turba
Browse files

fix alembic

parent 42343f26
No related branches found
No related tags found
No related merge requests found
database_name_url = sqlite:///test.db
# {{ cookiecutter.package_slug }}
A POC for a DAL package using SQLAlchemy and Alembic.
A DAL package using SQLAlchemy and Alembic.
# alembic
......@@ -14,12 +14,12 @@ pip install alembic
alembic init alembic
```
## auto-generate migration script
## run migration script
```shell
alembic revision --autogenerate -m "first migration"
alembic -c src/{{ cookiecutter.package_slug }}/alembic/alembic.ini upgrade head
```
## run migration script
## auto-generate migration script
```shell
alembic upgrade head
alembic -c src/{{ cookiecutter.package_slug }}/alembic/alembic.ini revision --autogenerate -m "first migration"
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment