You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Complete SQLAlchemy 2.0 migration for test suite and models (#756)
This completes the SQLAlchemy 2.0 migration started in commits 545c4e2 and ea54f49.
Changes:
- Migrate 12 test files from deprecated .query() API to select() API
- Replace session.query(Model).filter() with session.scalars(select(Model).where())
- Replace session.query().count() with session.scalar(select(func.count()).select_from())
- Update composite key .get() from dict to tuple format
- Add explicit String column lengths to model fields
- models/cue.py: colour (16), ident (50)
- models/mics.py: name (100), description (500)
All tests pass with no SQLAlchemy deprecation warnings.
Files modified:
- 12 test files under test/
- 2 model files: models/cue.py, models/mics.py
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
0 commit comments