Review the ORM models and align the live database with them #16
Loading…
Reference in a new issue
No description provided.
Delete branch "orm-review"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
noxsession "verify-db-objects" that compares a live database with the ORM modelsGrid.side_lengthin different citiesgrids.side_lengthnot nullableCity.mapwithfunctools.cached_property.__repr__()After this branch,
uv run nox -s verify-db-objectsreports no differences for the live database.noxsession "verify-db-objects" 731299bb6eGrid.side_lengthacross cities b36a3d1cd6The `unique=True` on `Grid.side_length` made the side length unique across all cities. The intended rule is the `UniqueConstraint("city_id", "side_length")`, which the migrations already implement; so, no migration is needed.grids.side_lengthnot nullable 2a627072d8City.mapwithfunctools.cached_property1f9d0effae.__repr__()7d53abc057