Skip to content

Commit

Permalink
make migration function name clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
laruh committed Sep 13, 2024
1 parent 1da9cb8 commit 5cae2d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm2src/coins/nft/storage/sql_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1082,7 +1082,7 @@ impl NftTransferHistoryStorageOps for AsyncMutexGuard<'_, AsyncConnection> {

if version < CURRENT_SCHEMA_VERSION_TX_HISTORY {
// Call migration function to update the table schema to the latest version
migrate_tx_history_table_schema(conn, history_table, schema_table)?;
migrate_tx_history_table_to_schema_v2(conn, history_table, schema_table)?;
}

Ok(true)
Expand Down Expand Up @@ -1415,7 +1415,7 @@ impl NftTransferHistoryStorageOps for AsyncMutexGuard<'_, AsyncConnection> {
}
}

fn migrate_tx_history_table_schema(
fn migrate_tx_history_table_to_schema_v2(
conn: &mut Connection,
history_table: SafeTableName,
schema_table: SafeTableName,
Expand Down

0 comments on commit 5cae2d4

Please sign in to comment.