Skip to content

Commit ce77c8a

Browse files
authored
chore: bump to v1.3.1, update CHANGELOG (#56)
1 parent db4affb commit ce77c8a

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ Versioning: [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
77

88
---
99

10+
## [1.3.1] — 2026-06-08
11+
12+
### Fixed
13+
- **Error message quality** — when `alembic.ini` is missing, pytest-mrt now reports the error once at session start and exits cleanly instead of printing the same message for every collected test (typically 7 times with duplicate tracebacks). Fixes the "During handling of the above exception" noise in test output. (#55)
14+
- **`mrt init` db_url quoting bug** — the generated `conftest.py` previously wrote `db_url=sqlite:///test.db` (invalid Python). Now correctly writes `db_url="sqlite:///test.db"`. Python expressions such as `os.environ['TEST_DATABASE_URL']` are passed through as-is. Prompts and next-steps output also improved. (#54)
15+
- **`mrt check --since` empty-match warning**`--since <ref>` that matched no migrations previously ran silently on the full set. Now exits with a clear warning and exit code 1. Also notes that graph checks (orphan / data-hole detection) are skipped in `--since` mode. (#52)
16+
- **Django `mrt fix` unsupported operations**`mrt fix` on Django migrations containing `AddField` (NOT NULL without default), `AlterField`, `RenameField`, or `RenameModel` now exits with code 1 and explains what must be fixed manually instead of silently producing no output. (#51)
17+
- **Django migration downgrade with branch merges**`downgrade(app, migration)` previously used the first parent as the rollback target, which caused sibling branch migrations to be incorrectly rolled back when a merge migration was applied. Fixed by building the rollback plan directly from `MigrationGraph.backwards_plan()`. (#50)
18+
19+
---
20+
1021
## [1.3.0] — 2026-06-08
1122

1223
### Added

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "pytest-mrt"
7-
version = "1.3.0"
7+
version = "1.3.1"
88
description = "Catch database migration rollback failures before they reach production"
99
readme = "README.md"
1010
license = { text = "MIT" }

0 commit comments

Comments
 (0)