From a9f88812e1d6f6d4fffee339704f00318e4c8d97 Mon Sep 17 00:00:00 2001 From: Gui Iribarren Date: Fri, 6 Sep 2024 11:29:41 +0200 Subject: [PATCH] indexer: hotfix 0013_recreate_table_transactions --- vochain/indexer/migrations/0013_recreate_table_transactions.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vochain/indexer/migrations/0013_recreate_table_transactions.sql b/vochain/indexer/migrations/0013_recreate_table_transactions.sql index bf091d7c9..636f0e2bc 100644 --- a/vochain/indexer/migrations/0013_recreate_table_transactions.sql +++ b/vochain/indexer/migrations/0013_recreate_table_transactions.sql @@ -10,7 +10,7 @@ CREATE TABLE transactions_new ( ); -- Copy data from the old table to the new table -INSERT INTO transactions_new (hash, block_height, block_index, type) +INSERT OR REPLACE INTO transactions_new (hash, block_height, block_index, type) SELECT hash, block_height, block_index, type FROM transactions;