idac: Fix idac_round_info table migration (#21)

This upgrade script was failing for people with an older db, due to the table not existing. Alternatively you could just remove the drop_table calls, but I assume they were put in place in case some users had an older version of the table schema, so this is a little safer.

Reviewed-on: Dniel97/artemis#21
Co-authored-by: TehCupcakes <tehcupcakes@hotmail.com>
Co-committed-by: TehCupcakes <tehcupcakes@hotmail.com>
This commit is contained in:
TehCupcakes 2024-08-07 15:22:05 +00:00 committed by Dniel97
parent 85e84eff67
commit 26920c2af8

View File

@ -18,8 +18,8 @@ depends_on = None
def upgrade():
op.drop_table("idac_round_info")
op.drop_table("idac_user_round_info")
op.execute("DROP TABLE IF EXISTS idac_round_info")
op.execute("DROP TABLE IF EXISTS idac_user_round_info")
op.create_table(
"idac_round_info",