Allow the same Grid.side_length across cities

The `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.
This commit is contained in:
Alexander Hess 2026-12-01 21:58:14 +01:00
commit b36a3d1cd6
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -32,7 +32,6 @@ class Grid(meta.Base):
side_length: orm.Mapped[int] = orm.mapped_column(
sa.SmallInteger,
nullable=False,
unique=True,
)
# Constraints