瀏覽代碼

Run migrations before loading data

Jake Howard 2 年之前
父節點
當前提交
acdb1fb5ef
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      readme.md

+ 1 - 0
readme.md

@@ -95,6 +95,7 @@ docker compose up --build -d
 After this command completes and returns to the command prompt, wait 10 more seconds for the database setup to complete. Then run:
 
 ```bash
+docker compose run app /venv/bin/python manage.py migrate
 docker compose run app /venv/bin/python manage.py load_initial_data
 ```
 If this fails with a database error, wait 10 more seconds and re-try. Finally, run: