PythonBulawayo/ChitChat

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

オープン

#41 opened on 2024/02/14

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (24 件のフォーク)auto 404
backendgood first issuegood first task

Repository metrics

Stars
 (25 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド