mirror of
https://github.com/PokeAPI/pokeapi
synced 2024-11-22 03:13:06 +00:00
chore: update sprites/add make command to destroy the db
fix: run flush non interactively
This commit is contained in:
parent
e2e43d8bda
commit
cf1a2d4f51
2 changed files with 7 additions and 3 deletions
8
Makefile
8
Makefile
|
@ -49,8 +49,12 @@ docker-build-db: # (Docker) Build the database
|
|||
docker-make-migrations: # (Docker) Create migrations files if schema has changed
|
||||
docker-compose exec -T app sh -c 'python manage.py makemigrations ${docker_config}'
|
||||
|
||||
docker-flush-db: # (Docker) Removes all the data present in the database
|
||||
docker-compose exec -T app sh -c 'python manage.py flush ${docker_config}'
|
||||
docker-flush-db: # (Docker) Removes all the data present in the database but preserves tables and migrations
|
||||
docker-compose exec -T app sh -c 'python manage.py flush --no-input ${docker_config}'
|
||||
|
||||
docker-destroy-db: # (Docker) Removes the volume where the database is installed on, alongside to the container itself
|
||||
docker rm -f pokeapi_db_1
|
||||
docker volume rm pokeapi_pg_data
|
||||
|
||||
docker-shell: # (Docker) Launch an interative shell for the pokeapi container
|
||||
docker-compose exec app sh -l
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 897eaefad787da88a5ad6b0cdce833360f9f8163
|
||||
Subproject commit e24fdb772a7568d06081645034fc03afb420ec1b
|
Loading…
Reference in a new issue