forked from cswimr/SeaCogs
fix(aurora): fixed index creation
This commit is contained in:
parent
558b056b9c
commit
acc017d61c
1 changed files with 3 additions and 3 deletions
|
@ -56,13 +56,13 @@ async def create_guild_table(guild: Guild):
|
|||
"""
|
||||
cursor.execute(query)
|
||||
|
||||
index_query_1 = f"CREATE INDEX idx_target_id ON moderation_{guild.id}(target_id);"
|
||||
index_query_1 = f"CREATE INDEX IF NOT EXISTS idx_target_id ON moderation_{guild.id}(target_id);"
|
||||
cursor.execute(index_query_1)
|
||||
|
||||
index_query_2 = f"CREATE INDEX idx_moderator_id ON moderation_{guild.id}(moderator_id);"
|
||||
index_query_2 = f"CREATE INDEX IF NOT EXISTS idx_moderator_id ON moderation_{guild.id}(moderator_id);"
|
||||
cursor.execute(index_query_2)
|
||||
|
||||
index_query_3 = f"CREATE INDEX idx_moderation_id ON moderation_{guild.id}(moderation_id);"
|
||||
index_query_3 = f"CREATE INDEX IF NOT EXISTS idx_moderation_id ON moderation_{guild.id}(moderation_id);"
|
||||
cursor.execute(index_query_3)
|
||||
|
||||
insert_query = f"""
|
||||
|
|
Loading…
Reference in a new issue