Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
c1c81eb
Test #499: remove @expectedFailure from rename+alter Meta.indexes tests
robberwick Mar 5, 2026
f19cff5
Fix #499: restore Meta.indexes when RenameField and AlterField in sam…
robberwick Mar 5, 2026
00ec61d
CHORE: fields_orders is an iterable of tuples
Aug 27, 2026
daa32ea
Test #499: cover stale Meta.indexes rebuilding
Sep 7, 2026
aa29f82
Fix #499: reconcile stale Meta indexes
Sep 7, 2026
b03cb8e
Merge branch 'dev' into rename-alter-meta-indexes
bewithgaurav Sep 8, 2026
d7cad43
Test #499: cover metadata index restoration
Sep 8, 2026
9cc58a5
Test #499: cover expression condition renames
Sep 8, 2026
d94f235
Fix #499: reconcile stale Meta indexes
Sep 8, 2026
ec45ac7
Merge branch 'dev' into rename-alter-meta-indexes
bewithgaurav Sep 8, 2026
59f9b69
Fix #499: reconcile reused stale index field names
Sep 8, 2026
3fe3943
Fix #499: preserve filtered index literals on rename
Sep 8, 2026
23aea2b
Test #499: document deferred filtered index rename limitation
Sep 8, 2026
d52e26d
Test #499: cover filtered index multiple renames
Sep 9, 2026
039c171
Test #499: isolate deferred filtered index regression
Sep 9, 2026
eea286b
Fix #499: compose filtered index rename replacements
Sep 9, 2026
2d19bc9
Chore: Add docstrings to DatabaseSchemaEditor helpers
Sep 9, 2026
851bdb2
Test #499: cover tuple RHS filtered index dependency
Sep 9, 2026
5361368
Fix #499: track tuple RHS filtered index expressions
Sep 9, 2026
cb86c1f
Test #499: cover bracketed filtered index literal
Sep 9, 2026
c5cadde
Fix #499: track filtered index renames structurally
Sep 9, 2026
bfb4e89
Fix: retain filtered Meta indexes after renames
Sep 10, 2026
ed81517
Fix: support unbound schema alter fields
Sep 10, 2026
e05e449
Fix: track deferred unique index columns
Sep 10, 2026
ff34916
Test #499: reproduce restart-boundary Meta.indexes state
Sep 10, 2026
3ede797
Fix #499: persist Meta.indexes through field renames
Sep 10, 2026
75b4622
Test #499: cover deferred filtered Meta.indexes rename
Sep 10, 2026
126626a
Fix #499: defer filtered Meta.index condition rendering
Sep 10, 2026
52eb4d0
Fix #499: retain Django 3.2 compatibility
Sep 11, 2026
713de64
Test #499: cover Django 3.2 predicate-only index rename
Sep 11, 2026
bd22a59
Fix #499: reconcile Django 3.2 index rename state
Sep 11, 2026
9affcaf
Test #499: cover deferred conditional unique rename
Sep 11, 2026
31805bb
Fix #499: retain deferred unique predicates structurally
Sep 11, 2026
2cfb824
Test #499: cover Meta.index lost after combined rename and alter
Sep 11, 2026
e51cf6f
Fix #499: restore Meta.indexes dropped by a combined rename and alter
Sep 11, 2026
9408b6c
Test #499: cover stale Meta.constraint after rename
Sep 11, 2026
0459576
Fix #499: sync Meta.constraints on field rename
Sep 11, 2026
190dec3
Test #499: cover optimizer-folded rename losing Meta.index
Sep 11, 2026
970dd7e
Fix #499: rewrite Meta.indexes/constraints when the optimizer folds a…
Sep 11, 2026
215cbfe
Test #499: cover tuple-wrapped and transformed F() rename
Sep 11, 2026
042d2ef
Fix #499: rewrite F() references in list/tuple RHS values and transforms
Sep 11, 2026
a899e93
Test #499: cover unbound replacement field in filtered-index restore
Sep 11, 2026
5ae691a
Fix #499: use the meta_model fallback for unbound replacement fields
Sep 11, 2026
28ec09e
Test #499: cover deferred Meta.index restore-vs-create collision
Sep 11, 2026
611ba83
Fix #499: track actually-dropped index names to avoid deferred-create…
Sep 11, 2026
32b231e
Test #499: cover pk-alias condition crashing an unrelated alter
Sep 11, 2026
df40a16
Fix #499: resolve the pk alias before index-condition field lookups
Sep 11, 2026
3554176
Test #499: strengthen transformed-F assertion and cover Django 3.2 co…
Sep 11, 2026
65e3ee1
Test #499: cover Meta.index lost after AutoField db_column rename
Sep 11, 2026
dc8f200
Fix #499: track AutoField-path dropped indexes and restore regardless…
Sep 11, 2026
85bf743
Test #499: cover covering UniqueConstraint losing INCLUDE semantics o…
Sep 11, 2026
0674cd4
Fix #499: give structured constraint restoration exclusive control ov…
Sep 11, 2026
0466cd9
Test #499: cover OR-condition guard bypass via CreateModel
Sep 11, 2026
da92af6
Fix #499: apply OR-condition guard to CreateModel deferred unique con…
Sep 11, 2026
3ebaee2
Test #499: pin include field db_column resolution for covering constr…
Sep 11, 2026
fd48d22
test: reproduce nested-OR and negated-Q unique constraint guard gaps
Sep 12, 2026
8cf1672
fix: recursively validate unique constraint conditions for nested OR/…
Sep 12, 2026
1e79fa7
test: reproduce lost db_index/unique_together/UniqueConstraint after …
Sep 12, 2026
3b663ab
fix: restore db_index/unique_together/UniqueConstraint after AutoFiel…
Sep 12, 2026
569378f
test: reproduce stale ForeignKey attname in renamed Meta.index/constr…
Sep 14, 2026
0ea1feb
fix: rewrite ForeignKey attname references in renamed Meta.index/cons…
Sep 14, 2026
70a837a
test: reproduce unresolved pk-alias in renamed FK-backed primary key …
Sep 14, 2026
70d37a4
fix: resolve pk alias in renamed-field condition membership checks
Sep 14, 2026
0662f6c
test: cover pk-alias condition on a plain Meta.Index (not just Unique…
Sep 14, 2026
9f050de
perf: fetch Meta.index catalog metadata in one query, not one per index
Sep 14, 2026
6d03096
Merge branch 'dev' into rename-alter-meta-indexes
bewithgaurav Sep 16, 2026
2021eb0
Merge branch 'dev' into rename-alter-meta-indexes
bewithgaurav Sep 24, 2026
d3bee44
Test #584: expose deferred unique-together collision
Sep 24, 2026
3b2868b
Fix #584: deduplicate deferred unique-together restore
Sep 24, 2026
72fdc0b
Test #619: expose conditional constraint alter failures
Sep 24, 2026
38dbaab
Fix #619: restore conditional constraints after alters
Sep 24, 2026
1be6cd5
Test #584: run deferred unique coverage on supported Django
Sep 24, 2026
9650e2d
Docs #584: document structured migration fixes
Sep 24, 2026
a631911
Test #584: expose stale positional expressions after renames
Sep 25, 2026
93127f3
Fix #584: rewrite positional expressions after renames
Sep 25, 2026
69a1dbc
Docs #584: scope changelog entry to migrations actually fixed
Sep 25, 2026
96f5d94
Test #584: cover renamed field in deferred unique_together condition
Sep 25, 2026
43b5ef0
Merge branch 'dev' into rename-alter-meta-indexes
bewithgaurav Sep 25, 2026
b49b6bb
CHORE: Cover squashmigrations in a fresh CLI process
bewithgaurav Sep 25, 2026
5256b9f
CHORE: Reuse the test database for squashmigrations
bewithgaurav Sep 25, 2026
8f6ce7e
Test #584: cover custom Index/UniqueConstraint subclasses with non-st…
Sep 25, 2026
84b8c9c
Fix #584: clone Meta index/constraint attributes instead of reconstru…
Sep 25, 2026
0308637
FIX: Preserve custom conditional constraint hooks
bewithgaurav Sep 25, 2026
a841bee
FIX: Preserve custom conditional index hooks
bewithgaurav Sep 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable user-facing changes to mssql-django are documented in this file.

## [Unreleased]

### Fixed

- Preserved structured `Meta.indexes` and conditional/covering
`UniqueConstraint` definitions - including their positional expressions -
across `RenameField`-plus-`AlterField` migrations (split or combined),
reused/multiple renames, optimizer-folded `CreateModel`, and
`AutoField`/`BigAutoField` column-rename restoration ([#584]).

## [2.0.0] - 2026-09-18

### Added
Expand Down Expand Up @@ -153,6 +161,7 @@ All notable user-facing changes to mssql-django are documented in this file.
[#564]: https://github.com/microsoft/mssql-django/pull/564
[#575]: https://github.com/microsoft/mssql-django/pull/575
[#583]: https://github.com/microsoft/mssql-django/pull/583
[#584]: https://github.com/microsoft/mssql-django/pull/584
[#596]: https://github.com/microsoft/mssql-django/pull/596
[#598]: https://github.com/microsoft/mssql-django/pull/598
[#599]: https://github.com/microsoft/mssql-django/pull/599
Expand Down
Loading
Loading