Files
roa2web-service-auto/.claude/settings.json
Claude Agent dc1711acd0 feat: [US-001] Add automatic Alembic migrations at backend startup
- Add alembic.ini config for data_entry module
- Add migrations.py helper with:
  - run_migrations(): runs pending migrations at startup (returns True/False)
  - get_current_revision(): returns current schema version for /health
- Integrate migrations in main.py startup_event() BEFORE init_data_entry_db()
- Add data_entry_schema_version to /health endpoint

If migrations fail, backend continues with WARNING (not crash).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 18:00:01 +00:00

39 lines
949 B
JSON

{
"statusLine": {
"type": "command",
"command": "/home/claude/.claude/statusline.sh"
},
"permissions": {
"allow": [
"Bash(npm run dev)",
"Bash(npm run build)",
"Bash(npm run lint)",
"Bash(npm run format)",
"Bash(npm run preview)",
"Bash(npm run serve)",
"Bash(npm run test:e2e*)",
"Bash(npm test*)",
"Bash(./start.sh*)",
"Bash(./start-backend.sh*)",
"Bash(./start-frontend.sh*)",
"Bash(./status.sh)",
"Bash(pytest*)",
"Bash(python -m pytest*)",
"Bash(ruff check*)",
"Bash(ruff format*)",
"Bash(mypy*)",
"Bash(pip install*)",
"Bash(cd backend && alembic*)",
"Bash(python -m py_compile*)",
"Bash(git checkout*)",
"Bash(git status)",
"Bash(git diff*)",
"Bash(git add*)",
"Bash(git commit*)",
"Bash(git log*)",
"Bash(git branch*)",
"Bash(agent-browser*)"
]
}
}