No longer recreating indexes
This commit is contained in:
parent
91518559b0
commit
289532fd95
@ -25,7 +25,7 @@ def _create_tables(con: mariadb.Connection) -> None:
|
|||||||
def _create_index(con: mariadb.Connection) -> None:
|
def _create_index(con: mariadb.Connection) -> None:
|
||||||
cursor = con.cursor()
|
cursor = con.cursor()
|
||||||
cursor.execute(
|
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)
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user