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;