PythonBulawayo/ChitChat

Add a commands to create and apply migrations in the API docker container

Offen

#41 geöffnet am 14.02.2024

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)TypeScript (24 Forks)auto 404
backendgood first issuegood first task

Repository-Metriken

Stars
 (25 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Docker doesn't create a database when it first starts. This leads to database or " no such table" errors when you start the backend service.

Add the following commands to the Dockerfile in backend folder to make and apply database migrations:

python manage.py makemigrations python manage.py migrate

Contributor Guide