From 7253ddbb145048460f6024458fe141d501d47182 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Tue, 2 Apr 2024 13:18:58 +0200 Subject: [PATCH] fix migrations --- cashu/mint/migrations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cashu/mint/migrations.py b/cashu/mint/migrations.py index f46f48a5..af2cf41b 100644 --- a/cashu/mint/migrations.py +++ b/cashu/mint/migrations.py @@ -650,7 +650,7 @@ async def m017_foreign_keys_proof_tables(db: Database): """ ) await conn.execute( - f"INSERT INTO {table_with_schema(db, 'proofs_used_new')} (amount, id, C, secret, Y, id, witness, created) SELECT amount, id, C, secret, Y, id, witness, created FROM {table_with_schema(db, 'proofs_used')}" + f"INSERT INTO {table_with_schema(db, 'proofs_used_new')} (amount, id, C, secret, Y, witness, created) SELECT amount, id, C, secret, Y, witness, created FROM {table_with_schema(db, 'proofs_used')}" ) await conn.execute(f"DROP TABLE {table_with_schema(db, 'proofs_used')}") await conn.execute( @@ -677,7 +677,7 @@ async def m017_foreign_keys_proof_tables(db: Database): """ ) await conn.execute( - f"INSERT INTO {table_with_schema(db, 'proofs_pending_new')} (amount, id, C, secret, Y, id, created) SELECT amount, id, C, secret, Y, id, created FROM {table_with_schema(db, 'proofs_pending')}" + f"INSERT INTO {table_with_schema(db, 'proofs_pending_new')} (amount, id, C, secret, Y, created) SELECT amount, id, C, secret, Y, created FROM {table_with_schema(db, 'proofs_pending')}" ) await conn.execute(f"DROP TABLE {table_with_schema(db, 'proofs_pending')}") await conn.execute( @@ -706,7 +706,7 @@ async def m017_foreign_keys_proof_tables(db: Database): ) await conn.execute( - f"INSERT INTO {table_with_schema(db, 'promises_new')} (amount, id, B_, C_, id, e, s, created) SELECT amount, id, B_b, C_b, id, e, s, created FROM {table_with_schema(db, 'promises')}" + f"INSERT INTO {table_with_schema(db, 'promises_new')} (amount, id, B_, C_, e, s, created) SELECT amount, id, B_b, C_b, e, s, created FROM {table_with_schema(db, 'promises')}" ) await conn.execute(f"DROP TABLE {table_with_schema(db, 'promises')}") await conn.execute(