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