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:
parent
731299bb6e
commit
b36a3d1cd6
1 changed files with 0 additions and 1 deletions
|
|
@ -32,7 +32,6 @@ class Grid(meta.Base):
|
||||||
side_length: orm.Mapped[int] = orm.mapped_column(
|
side_length: orm.Mapped[int] = orm.mapped_column(
|
||||||
sa.SmallInteger,
|
sa.SmallInteger,
|
||||||
nullable=False,
|
nullable=False,
|
||||||
unique=True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Constraints
|
# Constraints
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue