PythonBulawayo/ChitChat

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

開放

#41 建立於 2024年2月14日

 (0 則留言) (0 個反應) (0 位負責人)TypeScript (24 個分叉)auto 404
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

貢獻者指南