mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 12:28:22 +00:00
lint
This commit is contained in:
@@ -77,9 +77,10 @@ def upgrade() -> None:
|
|||||||
|
|
||||||
inspector = sa.inspect(conn)
|
inspector = sa.inspect(conn)
|
||||||
for constraint in inspector.get_unique_constraints("upstream_providers"):
|
for constraint in inspector.get_unique_constraints("upstream_providers"):
|
||||||
if constraint.get("column_names") == ["base_url"] and constraint.get("name"):
|
name = constraint.get("name")
|
||||||
|
if constraint.get("column_names") == ["base_url"] and name:
|
||||||
op.drop_constraint(
|
op.drop_constraint(
|
||||||
constraint["name"],
|
name,
|
||||||
"upstream_providers",
|
"upstream_providers",
|
||||||
type_="unique",
|
type_="unique",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user