Skip to content

fix: Database migrations for fresh deployments#21

Merged
andreas-vester merged 2 commits into
mainfrom
fix_db_migration_20
Jan 29, 2026
Merged

fix: Database migrations for fresh deployments#21
andreas-vester merged 2 commits into
mainfrom
fix_db_migration_20

Conversation

@andreas-vester
Copy link
Copy Markdown
Owner

Create initial Alembic migration that properly creates all required database
tables instead of attempting to alter non-existent tables. This fixes the
sqlalchemy.exc.NoSuchTableError that occurred when running migrations on
fresh database instances.

  • Create 000_initial_schema migration with full schema definition
  • Remove redundant f07b511c58dc migration that was attempting table alterations
  • Ensure all tables, indexes, and constraints are properly initialized

Fixes #20

Create initial migration that properly creates all tables instead of
attempting to alter non-existent ones.

Closes #20
@andreas-vester andreas-vester self-assigned this Jan 29, 2026
@andreas-vester andreas-vester added the bug Something isn't working label Jan 29, 2026
@andreas-vester andreas-vester merged commit d256767 into main Jan 29, 2026
3 checks passed
@andreas-vester andreas-vester deleted the fix_db_migration_20 branch January 29, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Database migrations fail on fresh Docker deployment

1 participant