Skip to content

Commit

Permalink
Fix databse migrations related to EnabledWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
ealymbaev committed Oct 23, 2023
1 parent 4dfaf1f commit 3d138f6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -658,8 +658,9 @@ class StorageMigrator {
}

for old in oldWallets {
let record = EnabledWallet(
let record = EnabledWallet_v_0_34(
tokenQueryId: tokenQuery(coinTypeId: old.coinId).id,
coinSettingsId: old.coinSettingsId,
accountId: old.accountId,
coinName: old.coinName,
coinCode: old.coinCode,
Expand Down Expand Up @@ -780,7 +781,7 @@ class StorageMigrator {
t.column(EnabledWalletCache.Columns.accountId.name, .text).notNull()
t.column(EnabledWalletCache.Columns.balances.name, .text).notNull()

t.primaryKey([EnabledWalletCache.Columns.tokenQueryId.name, EnabledWalletCache_v_0_36.Columns.accountId.name], onConflict: .replace)
t.primaryKey([EnabledWalletCache.Columns.tokenQueryId.name, EnabledWalletCache.Columns.accountId.name], onConflict: .replace)
}
}

Expand Down

0 comments on commit 3d138f6

Please sign in to comment.