db/tables
directory.db/tables/__init__.py
file.UsersTable
, copy the following code to db/tables/user.py
db/tables/__init__.py
file:
db/tables/test_add_user.py
MIGRATE_DB = True
and restarting the production service. This runs alembic -c db/alembic.ini upgrade head
from the entrypoint script at container startup.
workspace/prd_resources.py
filedb/migrations
directory should be created.alembic.ini
script_location = db/migrations
black
hook in [post_write_hooks]
db/migrations/env.py
file following this linkconfigure
to only include tables in the target_metadata