Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
terrameijar opened this issue Feb 14, 2024 · 0 comments
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.

Comments

@terrameijar
Copy link
Collaborator

terrameijar commented Feb 14, 2024

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

@terrameijar terrameijar added backend Backend related tasks and issues good first task Easy picking that can be done by newcomers or beginners. labels Feb 14, 2024
@terrameijar terrameijar changed the title Add a command to create migrations in the API docker container Add a commands to create and apply migrations in the API docker container Feb 14, 2024
@terrameijar terrameijar added the good first issue Good for newcomers label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

1 participant