Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
paulineribeyre committed Feb 22, 2023
1 parent 35e4fab commit 9d27647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migrations/versions/a04a70296688_non_unique_client_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def upgrade():
"SELECT conname FROM pg_constraint WHERE conrelid = 'client'::regclass and contype = 'u'"
)

# filter out the constraints that are not for the "name" column; only 1 constraint should be left
# filter out the constraints that are not for the "name" column
name_constraints = [e[0] for e in results if "name" in e[0]]
logger.info(
f"Found {len(name_constraints)} 'unique client name' constraints; deleting all of them: {name_constraints}"
Expand Down

0 comments on commit 9d27647

Please sign in to comment.