You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tables containing indices trigger a DuplicateTableError even when passed the if_not_exists=True argument.
class Example(Table):
id = Integer(primary_key=True)
value = Varchar(length=255, index=True)
# Initial table creation
await Example.create_table(if_not_exists=True)
# Duplicate table creation should be idempotent
await Example.create_table(if_not_exists=True)
This causes the following error: asyncpg.exceptions.DuplicateTableError: relation "example_value" already exists
The text was updated successfully, but these errors were encountered:
Tables containing indices trigger a
DuplicateTableError
even when passed theif_not_exists=True
argument.This causes the following error:
asyncpg.exceptions.DuplicateTableError: relation "example_value" already exists
The text was updated successfully, but these errors were encountered: