Skip to content

abusquets/abusquets-filmin

Repository files navigation

abusquets-filmin

To execute any command, do it in the container

docker-compose exec api bash

Users

Create admin User

python manage.py {user_email} {name}

Migrations

⚠️ WIP, not tested with multiple folders

alembic init -t async migrations

Create an initial migration:

alembic revision --autogenerate -m "init"

Creata a new migration:

alembic revision --autogenerate --branch-label core \
    --version-path core/infra/database/alembic/versions/ -m 'add core models'

alembic revision --autogenerate --branch-label filmin \
    --version-path filmin/infra/database/alembic/versions/ -m 'add filmin models'

Apply the migration to the database:

alembic upgrade head

alembic upgrade filmin@head

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages