Add migration script for database updates and seeding

Adds a new `migrate` script to the API server package.json and updates the docker-compose.yml to use this script for database migrations and seeding. Also updates the README.md to reflect the new migration command.
This commit is contained in:
Riyadh
2026-05-13 14:26:39 +00:00
parent 7b8a715f6f
commit 51c32e6299
4 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ $EDITOR .env
docker compose build
docker compose up -d db minio minio-init
docker compose run --rm migrate # one-shot: db push + seed
docker compose run --rm migrate # one-shot: pnpm run migrate (db push + seed)
docker compose up -d api web
```