forked from Dniel97/artemis
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:
parent
85e84eff67
commit
26920c2af8
@ -18,8 +18,8 @@ depends_on = None
|
|||||||
|
|
||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
op.drop_table("idac_round_info")
|
op.execute("DROP TABLE IF EXISTS idac_round_info")
|
||||||
op.drop_table("idac_user_round_info")
|
op.execute("DROP TABLE IF EXISTS idac_user_round_info")
|
||||||
|
|
||||||
op.create_table(
|
op.create_table(
|
||||||
"idac_round_info",
|
"idac_round_info",
|
||||||
|
Loading…
Reference in New Issue
Block a user