优化数据库

This commit is contained in:
yml
2026-06-02 20:37:00 +08:00
parent 5cb2f33872
commit af754bb594
9 changed files with 206 additions and 185 deletions
+1 -3
View File
@@ -27,9 +27,7 @@
```bash
docker compose -f deploy/docker-compose.dev.yml up -d
for file in backend/migrations/*.sql; do
docker exec -i hfb-mysql mysql -uhfb -psecret hfb_sys < "$file"
done
docker exec -i hfb-mysql mysql -uhfb -psecret hfb_sys < backend/migrations/000001_init.sql
cd backend
cp .env.example .env