channels: fix inferred constraint name

This commit is contained in:
Luna 2019-07-23 15:46:00 -03:00
parent db00724379
commit 2086ee2849
1 changed files with 1 additions and 1 deletions

View File

@ -284,7 +284,7 @@ async def _process_overwrites(channel_id: int, overwrites: list):
target_user = overwrite['id'] if target_type == 0 else None
col_name = 'target_user' if target_type == 0 else 'target_role'
constraint_name = f'channel_overwrites_target_{col_name}'
constraint_name = f'channel_overwrites_{col_name}_uniq'
await app.db.execute(
f"""