Skip to content

Commit 3b584e3

Browse files
Merge pull request #201 from dandan2611/fix/readme-migrations
docs: add instructions for running database migrations in README
2 parents 1b06126 + ad2d74f commit 3b584e3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,9 @@ source venv/bin/activate # On Windows: venv\Scripts\activate
329329
# Install dependencies
330330
pip install -r requirements.txt
331331
332+
# Run database migrations (required before first launch and after updates)
333+
alembic upgrade head
334+
332335
# Start the backend with hot reloading
333336
cd app
334337
fastapi dev main.py --host 0.0.0.0 --port 8000
@@ -382,6 +385,7 @@ docker compose exec db psql -U postgres -d postgres
382385
383386
```bash
384387
# Backend commands (in api/ directory with venv activated)
388+
alembic upgrade head # Run database migrations (required before first launch and after updates)
385389
fastapi dev main.py # Development server
386390
387391
# Frontend commands (in ui/ directory)

0 commit comments

Comments
 (0)