Add a commands to create and apply migrations in the API docker container #41
Labels
backend
Backend related tasks and issues
good first issue
Good for newcomers
good first task
Easy picking that can be done by newcomers or beginners.
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
inbackend
folder to make and apply database migrations:python manage.py makemigrations
python manage.py migrate
The text was updated successfully, but these errors were encountered: