No longer recreating indexes

This commit is contained in:
StNicolay 2022-10-05 14:56:03 +03:00
parent 91518559b0
commit 289532fd95

View File

@ -25,7 +25,7 @@ def _create_tables(con: mariadb.Connection) -> None:
def _create_index(con: mariadb.Connection) -> None:
cursor = con.cursor()
cursor.execute(
"""CREATE OR REPLACE INDEX user_id_to_acc on accounts(user_id)
"""CREATE INDEX IF NOT EXISTS user_id_to_acc on accounts(user_id)
"""
)