fix: no migration occurs when adding unique true to indexed field (#414)

* feat: alter unique for indexed column

* chore: update docs and change some var names
This commit is contained in:
Waket Zheng
2025-02-20 16:58:32 +08:00
committed by GitHub
parent c35282c2a3
commit 41df464e8b
9 changed files with 130 additions and 34 deletions

View File

@@ -18,6 +18,7 @@ async def test_allow_duplicate() -> None:
async def test_unique_is_true() -> None:
with pytest.raises(IntegrityError):
await Foo.create(name="foo")
await Foo.create(name="foo")
@pytest.mark.asyncio