Explain the "why"
This commit is contained in:
parent
cfe8473fad
commit
593d0f83d7
1 changed files with 1 additions and 0 deletions
|
|
@ -98,6 +98,7 @@ class Address(meta.Base):
|
||||||
),
|
),
|
||||||
# Needed by a `ForeignKeyConstraint` in `AddressPixelAssociation`
|
# Needed by a `ForeignKeyConstraint` in `AddressPixelAssociation`
|
||||||
sa.UniqueConstraint("id", "city_id"),
|
sa.UniqueConstraint("id", "city_id"),
|
||||||
|
# Covers the zip codes of the target cities Bordeaux, Lyon, and Paris
|
||||||
sa.CheckConstraint(
|
sa.CheckConstraint(
|
||||||
"30000 <= zip_code AND zip_code <= 99999",
|
"30000 <= zip_code AND zip_code <= 99999",
|
||||||
name="valid_zip_code",
|
name="valid_zip_code",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue