PythonBulawayo/ChitChat
Add a commands to create and apply migrations in the API docker container
Ouverte
#41 ouverte le 14 févr. 2024
backendgood first issuegood first task
Métriques du dépôt
- Stars
- (25 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
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