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