Skip to content

fix: add initial Alembic migration for core database tables#895

Open
Pcmhacker-piro wants to merge 1 commit into
SdSarthak:mainfrom
Pcmhacker-piro:fix/alembic-initial-migration
Open

fix: add initial Alembic migration for core database tables#895
Pcmhacker-piro wants to merge 1 commit into
SdSarthak:mainfrom
Pcmhacker-piro:fix/alembic-initial-migration

Conversation

@Pcmhacker-piro
Copy link
Copy Markdown

Summary

Closes #633

Adds the missing initial Alembic migration that creates all core database tables (users, ai_systems, risk_assessments, documents, document_versions, guard_scan_logs, rag_feedback, rag_queries, notifications, compliance_snapshots) and reparents the existing migration chain so alembic upgrade head runs cleanly on a fresh clone.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Tests
  • Infra / CI

Checklist

  • I have read CONTRIBUTING.md
  • My code follows the project style (PEP 8 for Python, ESLint for TS)
  • I have added/updated tests where relevant
  • pytest backend/tests/ passes locally
  • I have not committed .env or any secrets
  • I have updated documentation if needed

Screenshots (if UI change)

N/A

@Pcmhacker-piro
Copy link
Copy Markdown
Author

@SdSarthak

, the checks have passed. Could you please review and approve the pending workflows when you have a chance? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alembic Migration Not Initialized — New Contributors Cannot Run Database Migrations

1 participant