From e8be55680d6c8e2a28eef26b00e22c5b89969e76 Mon Sep 17 00:00:00 2001 From: laruh Date: Mon, 16 Sep 2024 19:25:31 +0700 Subject: [PATCH] use "else if old_version == 1 && new_version == 2" check --- mm2src/coins/nft/storage/wasm/wasm_storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm2src/coins/nft/storage/wasm/wasm_storage.rs b/mm2src/coins/nft/storage/wasm/wasm_storage.rs index 7c5084f289..bbd96aa6cb 100644 --- a/mm2src/coins/nft/storage/wasm/wasm_storage.rs +++ b/mm2src/coins/nft/storage/wasm/wasm_storage.rs @@ -1014,7 +1014,7 @@ impl TableSignature for NftTransferHistoryTable { table.create_multi_index(CHAIN_IMAGE_DOMAIN_INDEX, &["chain", "image_domain"], false)?; table.create_index("block_number", false)?; table.create_index("chain", false)?; - } else if new_version == 2 { + } else if old_version == 1 && new_version == 2 { // Migration from version 1 to version 2 console::log_1(&JsValue::from_str("Migrating from version 1 to version 2."));