PythonBulawayo/ChitChat
Add a commands to create and apply migrations in the API docker container
開放
#41 建立於 2024年2月14日
backendgood first issuegood first task
倉庫指標
- 星標
- (25 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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