Remove periods from one-sentence comments
This commit is contained in:
parent
454c2898a0
commit
049a5f6f62
4 changed files with 308 additions and 308 deletions
|
|
@ -37,7 +37,7 @@ def upgrade():
|
|||
"side_length",
|
||||
name=op.f("uq_grids_on_city_id_side_length"),
|
||||
),
|
||||
# This `UniqueConstraint` is needed by the `addresses_pixels` table below.
|
||||
# This `UniqueConstraint` is needed by the `addresses_pixels` table below
|
||||
sa.UniqueConstraint("id", "city_id", name=op.f("uq_grids_on_id_city_id")),
|
||||
schema=config.CLEAN_SCHEMA,
|
||||
)
|
||||
|
|
@ -90,7 +90,7 @@ def upgrade():
|
|||
schema=config.CLEAN_SCHEMA,
|
||||
)
|
||||
|
||||
# This `UniqueConstraint` is needed by the `addresses_pixels` table below.
|
||||
# This `UniqueConstraint` is needed by the `addresses_pixels` table below
|
||||
op.create_unique_constraint(
|
||||
"uq_addresses_on_id_city_id",
|
||||
"addresses",
|
||||
|
|
|
|||
|
|
@ -326,7 +326,7 @@ def upgrade():
|
|||
""",
|
||||
)
|
||||
|
||||
# 4) Ensure every `Restaurant` has only one `Order.pickup_address`.
|
||||
# 4) Ensure every `Restaurant` has only one `Order.pickup_address`
|
||||
op.execute(
|
||||
f"""
|
||||
UPDATE
|
||||
|
|
|
|||
|
|
@ -23,15 +23,15 @@ config = configuration.make_config("testing" if os.getenv("TESTING") else "produ
|
|||
|
||||
def upgrade():
|
||||
"""Upgrade to revision 81aa304d7a6e."""
|
||||
# Drop unnecessary check constraint.
|
||||
op.execute( # `.delivery_at` is not set for `.cancelled` orders anyways.
|
||||
# Drop unnecessary check constraint
|
||||
op.execute( # `.delivery_at` is not set for `.cancelled` orders anyways
|
||||
f"""
|
||||
ALTER TABLE {config.CLEAN_SCHEMA}.orders
|
||||
DROP CONSTRAINT ck_orders_on_ordered_timestamps_21;
|
||||
""",
|
||||
)
|
||||
|
||||
# Add forgotten check constraints to the `orders` table.
|
||||
# Add forgotten check constraints to the `orders` table
|
||||
op.execute(
|
||||
f"""
|
||||
ALTER TABLE {config.CLEAN_SCHEMA}.orders
|
||||
|
|
@ -57,7 +57,7 @@ def upgrade():
|
|||
""",
|
||||
)
|
||||
|
||||
# This `UniqueConstraint` is needed by the `replayed_orders` table below.
|
||||
# This `UniqueConstraint` is needed by the `replayed_orders` table below
|
||||
op.create_unique_constraint(
|
||||
"uq_orders_on_id_ad_hoc",
|
||||
"orders",
|
||||
|
|
@ -125,7 +125,7 @@ def upgrade():
|
|||
ondelete="RESTRICT",
|
||||
),
|
||||
sa.ForeignKeyConstraint(
|
||||
# Needs the `UniqueConstraint` from above.
|
||||
# Needs the `UniqueConstraint` from above
|
||||
["actual_order_id", "ad_hoc"],
|
||||
[
|
||||
f"{config.CLEAN_SCHEMA}.orders.id",
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ config = configuration.make_config("testing" if os.getenv("TESTING") else "produ
|
|||
|
||||
|
||||
# The order matters: the "ordered_timestamps_N" constraints are shifted
|
||||
# by one from the top down such that every new name is free.
|
||||
# by one from the top down such that every new name is free
|
||||
RENAMES = (
|
||||
(
|
||||
"forecasts",
|
||||
|
|
|
|||
Loading…
Reference in a new issue