Skip to content

Conversation

@cofin
Copy link
Member

@cofin cofin commented Oct 30, 2025

Introduce new migration methods to database configuration classes, simplifying the migration process by allowing direct calls on config instances.

cofin and others added 4 commits October 30, 2025 21:45
- Add migrate_up/down, get_current_migration, create_migration, init_migrations methods
- Add stamp_migration and fix_migrations methods
- Implement proper type narrowing across all 4 config base classes
- Sync methods return None, async methods return Awaitable[None]
- Full backward compatibility with existing migration commands
- All existing tests pass without modification
- NoPoolSyncConfig.migrate_up was incorrectly wrapped with await_()
- Sync methods should call sync command methods directly
- All linting issues resolved
- All 54 tests still passing
@cofin cofin merged commit d1a061f into main Oct 31, 2025
16 of 19 checks passed
@cofin cofin deleted the feat/config-migration-methods branch October 31, 2025 02:04
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.

2 participants