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
MPT-18131: add version field to store the version when the migration was a… (#47)
…pplied
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
Closes [MPT-18131](https://softwareone.atlassian.net/browse/MPT-18131)
- Added `SERVICE_VERSION` environment variable to persist the service
version at the time each migration is applied
- Extended `Migration` model with `version` (str | None) and
`started_at` (dt.datetime | None) fields
- Extended `MigrationListItem` model with `applied_at`,
`migration_type`, `started_at`, and `version` fields
- Added `get_service_version()` function to `mpt_tool/config.py` to
retrieve the SERVICE_VERSION environment variable
- Updated Airtable state manager to initialize, read, and persist
version field in migration state records
- Updated file-based state manager to populate version field when
creating new migrations
- Added version column to `MigrationRender` table display
- Updated documentation and tests to reflect the new version field in
migration state schema and output
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
[MPT-18131]:
https://softwareone.atlassian.net/browse/MPT-18131?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
0 commit comments