-
Notifications
You must be signed in to change notification settings - Fork 1
Manage database
Kirill Ponomarev edited this page Apr 7, 2023
·
3 revisions
Note: after executing this command all data will be lost.
Execute following command in "flask" container terminal:
flask --app manage:app recreate_db
Execute following command in "flask" container terminal:
flask --app manage:app db migrate
Execute following command in "flask" container terminal:
flask --app manage:app db upgrade
Execute following command in "flask" container terminal:
flask --app manage:app db downgrade
For production configuration:
docker-compose -f docker-compose-prod.yml exec {container_name} {command}
For development configuration:
docker-compose exec {container_name} {command}