Skip to content

Commit

Permalink
Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed May 10, 2024
1 parent 802db13 commit 44c6faa
Show file tree
Hide file tree
Showing 71 changed files with 149 additions and 285 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ class BinanceAdapter(
transactionType: FilterTransactionType,
address: String?,
): Flowable<List<TransactionRecord>> = when (address) {
null -> getTransactionRecordsFlowable(token, transactionType)
null -> getTransactionRecordsFlowable(transactionType)
else -> Flowable.empty()
}

private fun getTransactionRecordsFlowable(token: Token?, transactionType: FilterTransactionType): Flowable<List<TransactionRecord>> {
private fun getTransactionRecordsFlowable(transactionType: FilterTransactionType): Flowable<List<TransactionRecord>> {
return try {
val filter = getBinanceTransactionTypeFilter(transactionType)
asset.getTransactionsFlowable(filter).map { it.map { transactionRecord(it) } }
Expand All @@ -118,11 +118,15 @@ class BinanceAdapter(
transactionType: FilterTransactionType,
address: String?,
) = when (address) {
null -> getTransactionsAsync(from, token, limit, transactionType)
null -> getTransactionsAsync(from, limit, transactionType)
else -> Single.just(listOf())
}

private fun getTransactionsAsync(from: TransactionRecord?, token: Token?, limit: Int, transactionType: FilterTransactionType): Single<List<TransactionRecord>> {
private fun getTransactionsAsync(
from: TransactionRecord?,
limit: Int,
transactionType: FilterTransactionType
): Single<List<TransactionRecord>> {
return try {
val filter = getBinanceTransactionTypeFilter(transactionType)
binanceKit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ abstract class BitcoinBaseAdapter(
transactionType: FilterTransactionType,
address: String?,
): Flowable<List<TransactionRecord>> = when (address) {
null -> getTransactionRecordsFlowable(token, transactionType)
null -> getTransactionRecordsFlowable(transactionType)
else -> Flowable.empty()
}

private fun getTransactionRecordsFlowable(token: Token?, transactionType: FilterTransactionType): Flowable<List<TransactionRecord>> {
private fun getTransactionRecordsFlowable(transactionType: FilterTransactionType): Flowable<List<TransactionRecord>> {
val observable: Observable<List<TransactionRecord>> = when (transactionType) {
FilterTransactionType.All -> {
transactionRecordsSubject
Expand Down Expand Up @@ -190,13 +190,12 @@ abstract class BitcoinBaseAdapter(
transactionType: FilterTransactionType,
address: String?,
) = when (address) {
null -> getTransactionsAsync(from, token, limit, transactionType)
null -> getTransactionsAsync(from, limit, transactionType)
else -> Single.just(listOf())
}

private fun getTransactionsAsync(
from: TransactionRecord?,
token: Token?,
limit: Int,
transactionType: FilterTransactionType
): Single<List<TransactionRecord>> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_31_32 : Migration(31, 32) {

override fun migrate(database: SupportSQLiteDatabase) {
createTableActiveAccount(database)
createTableRestoreSettings(database)

handleZcashAccount(database)
updateAccountRecordTable(database)
moveCoinSettingsFromBlockchainSettingsToWallet(database)
setActiveAccount(database)
setAccountUserFriendlyName(database)
override fun migrate(db: SupportSQLiteDatabase) {
createTableActiveAccount(db)
createTableRestoreSettings(db)

handleZcashAccount(db)
updateAccountRecordTable(db)
moveCoinSettingsFromBlockchainSettingsToWallet(db)
setActiveAccount(db)
setAccountUserFriendlyName(db)
}

private fun handleZcashAccount(database: SupportSQLiteDatabase) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_32_33 : Migration(32, 33) {

override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("UPDATE `EnabledWallet` SET `coinSettingsId` = 'derivation:bip49' WHERE `coinId` IN ('bitcoin', 'litecoin') AND `coinSettingsId` = ''")
database.execSQL("UPDATE `EnabledWallet` SET `coinSettingsId` = 'bitcoinCashCoinType:type145' WHERE `coinId` IN ('bitcoinCash') AND `coinSettingsId` = ''")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("UPDATE `EnabledWallet` SET `coinSettingsId` = 'derivation:bip49' WHERE `coinId` IN ('bitcoin', 'litecoin') AND `coinSettingsId` = ''")
db.execSQL("UPDATE `EnabledWallet` SET `coinSettingsId` = 'bitcoinCashCoinType:type145' WHERE `coinId` IN ('bitcoinCash') AND `coinSettingsId` = ''")
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_33_34 : Migration(33, 34) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE `AccountSettingRecord` (`accountId` TEXT NOT NULL, `key` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`accountId`, `key`))")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE `AccountSettingRecord` (`accountId` TEXT NOT NULL, `key` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`accountId`, `key`))")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_34_35 : Migration(34, 35) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `EnabledWalletCache` (`coinId` TEXT NOT NULL, `coinSettingsId` TEXT NOT NULL, `accountId` TEXT NOT NULL, `balance` TEXT NOT NULL, `balanceLocked` TEXT NOT NULL, PRIMARY KEY(`coinId`, `coinSettingsId`, `accountId`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE IF NOT EXISTS `EnabledWalletCache` (`coinId` TEXT NOT NULL, `coinSettingsId` TEXT NOT NULL, `accountId` TEXT NOT NULL, `balance` TEXT NOT NULL, `balanceLocked` TEXT NOT NULL, PRIMARY KEY(`coinId`, `coinSettingsId`, `accountId`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE CASCADE ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_35_36 : Migration(35, 36) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `CustomToken` (`coinName` TEXT NOT NULL, `coinCode` TEXT NOT NULL, `coinType` TEXT NOT NULL, `decimal` INTEGER NOT NULL, PRIMARY KEY(`coinType`))")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE IF NOT EXISTS `CustomToken` (`coinName` TEXT NOT NULL, `coinCode` TEXT NOT NULL, `coinType` TEXT NOT NULL, `decimal` INTEGER NOT NULL, PRIMARY KEY(`coinType`))")

database.execSQL("ALTER TABLE FavoriteCoin RENAME TO TempFavoriteCoin")
database.execSQL("CREATE TABLE IF NOT EXISTS `FavoriteCoin` (`coinUid` TEXT NOT NULL, PRIMARY KEY(`coinUid`))")
database.execSQL("INSERT INTO FavoriteCoin (`coinUid`) SELECT `coinType` FROM TempFavoriteCoin")
db.execSQL("ALTER TABLE FavoriteCoin RENAME TO TempFavoriteCoin")
db.execSQL("CREATE TABLE IF NOT EXISTS `FavoriteCoin` (`coinUid` TEXT NOT NULL, PRIMARY KEY(`coinUid`))")
db.execSQL("INSERT INTO FavoriteCoin (`coinUid`) SELECT `coinType` FROM TempFavoriteCoin")

database.execSQL("DROP TABLE TempFavoriteCoin")
database.execSQL("DROP TABLE SubscriptionJob")
database.execSQL("DROP TABLE PriceAlert")
db.execSQL("DROP TABLE TempFavoriteCoin")
db.execSQL("DROP TABLE SubscriptionJob")
db.execSQL("DROP TABLE PriceAlert")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_36_37 : Migration(36, 37) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `EvmAccountState` (`accountId` TEXT NOT NULL, `chainId` INTEGER NOT NULL, `transactionsSyncedBlockNumber` INTEGER NOT NULL, PRIMARY KEY(`accountId`, `chainId`))")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE IF NOT EXISTS `EvmAccountState` (`accountId` TEXT NOT NULL, `chainId` INTEGER NOT NULL, `transactionsSyncedBlockNumber` INTEGER NOT NULL, PRIMARY KEY(`accountId`, `chainId`))")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_37_38 : Migration(37, 38) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `NftCollectionRecord` (`accountId` TEXT NOT NULL, `uid` TEXT NOT NULL, `name` TEXT NOT NULL, `imageUrl` TEXT, `totalSupply` INTEGER NOT NULL, `averagePrice7d_coinTypeId` TEXT, `averagePrice7d_value` TEXT, `averagePrice30d_coinTypeId` TEXT, `averagePrice30d_value` TEXT, `floorPrice_coinTypeId` TEXT, `floorPrice_value` TEXT, `external_url` TEXT, `discord_url` TEXT, `telegram_url` TEXT, `twitter_username` TEXT, `instagram_username` TEXT, `wiki_url` TEXT, PRIMARY KEY(`accountId`, `uid`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
database.execSQL("CREATE TABLE IF NOT EXISTS `NftAssetRecord` (`accountId` TEXT NOT NULL, `collectionUid` TEXT NOT NULL, `tokenId` TEXT NOT NULL, `name` TEXT, `imageUrl` TEXT, `imagePreviewUrl` TEXT, `description` TEXT, `onSale` INTEGER NOT NULL, `attributes` TEXT NOT NULL, `coinTypeId` TEXT, `value` TEXT, `contract_address` TEXT NOT NULL, `contract_type` TEXT NOT NULL, `external_link` TEXT, `permalink` TEXT, PRIMARY KEY(`accountId`, `tokenId`, `contract_address`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE IF NOT EXISTS `NftCollectionRecord` (`accountId` TEXT NOT NULL, `uid` TEXT NOT NULL, `name` TEXT NOT NULL, `imageUrl` TEXT, `totalSupply` INTEGER NOT NULL, `averagePrice7d_coinTypeId` TEXT, `averagePrice7d_value` TEXT, `averagePrice30d_coinTypeId` TEXT, `averagePrice30d_value` TEXT, `floorPrice_coinTypeId` TEXT, `floorPrice_value` TEXT, `external_url` TEXT, `discord_url` TEXT, `telegram_url` TEXT, `twitter_username` TEXT, `instagram_username` TEXT, `wiki_url` TEXT, PRIMARY KEY(`accountId`, `uid`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
db.execSQL("CREATE TABLE IF NOT EXISTS `NftAssetRecord` (`accountId` TEXT NOT NULL, `collectionUid` TEXT NOT NULL, `tokenId` TEXT NOT NULL, `name` TEXT, `imageUrl` TEXT, `imagePreviewUrl` TEXT, `description` TEXT, `onSale` INTEGER NOT NULL, `attributes` TEXT NOT NULL, `coinTypeId` TEXT, `value` TEXT, `contract_address` TEXT NOT NULL, `contract_type` TEXT NOT NULL, `external_link` TEXT, `permalink` TEXT, PRIMARY KEY(`accountId`, `tokenId`, `contract_address`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_38_39 : Migration(38, 39) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `WalletConnectV2Session` (`accountId` TEXT NOT NULL, `topic` TEXT NOT NULL, PRIMARY KEY(`accountId`, `topic`))")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE IF NOT EXISTS `WalletConnectV2Session` (`accountId` TEXT NOT NULL, `topic` TEXT NOT NULL, PRIMARY KEY(`accountId`, `topic`))")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_39_40 : Migration(39, 40) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("ALTER TABLE EnabledWallet ADD `coinName` TEXT")
database.execSQL("ALTER TABLE EnabledWallet ADD `coinCode` TEXT")
database.execSQL("ALTER TABLE EnabledWallet ADD `coinDecimals` INTEGER")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("ALTER TABLE EnabledWallet ADD `coinName` TEXT")
db.execSQL("ALTER TABLE EnabledWallet ADD `coinCode` TEXT")
db.execSQL("ALTER TABLE EnabledWallet ADD `coinDecimals` INTEGER")

database.execSQL(
db.execSQL(
"UPDATE EnabledWallet " +
"SET coinName = (SELECT coinName FROM CustomToken WHERE CustomToken.coinType = EnabledWallet.coinId), " +
"coinCode = (SELECT coinCode FROM CustomToken WHERE CustomToken.coinType = EnabledWallet.coinId), " +
"coinDecimals = (SELECT decimal FROM CustomToken WHERE CustomToken.coinType = EnabledWallet.coinId) " +
"WHERE EXISTS (SELECT * FROM CustomToken WHERE CustomToken.coinType = EnabledWallet.coinId)"
)

database.execSQL("DELETE FROM CustomToken")
db.execSQL("DELETE FROM CustomToken")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import io.horizontalsystems.bankwallet.core.storage.BlockchainSettingsStorage
import io.horizontalsystems.bankwallet.entities.BtcRestoreMode

object Migration_40_41 : Migration(40, 41) {
override fun migrate(database: SupportSQLiteDatabase) {
override fun migrate(db: SupportSQLiteDatabase) {
val btcRestoreKey = BlockchainSettingsStorage.keyBtcRestore
database.execSQL("CREATE TABLE IF NOT EXISTS `BlockchainSettingRecord` (`blockchainUid` TEXT NOT NULL, `key` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`blockchainUid`, `key`))")
db.execSQL("CREATE TABLE IF NOT EXISTS `BlockchainSettingRecord` (`blockchainUid` TEXT NOT NULL, `key` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`blockchainUid`, `key`))")

val cursor = database.query("SELECT * FROM BlockchainSetting")
val cursor = db.query("SELECT * FROM BlockchainSetting")
while (cursor.moveToNext()) {
val coinTypeColumnIndex = cursor.getColumnIndex("coinType")
val keyColumnIndex = cursor.getColumnIndex("key")
Expand All @@ -34,7 +34,7 @@ object Migration_40_41 : Migration(40, 41) {
else -> BtcRestoreMode.Hybrid
}
btcBlockchain?.let { blockchain ->
database.execSQL(
db.execSQL(
"""
INSERT INTO BlockchainSettingRecord (`blockchainUid`,`key`,`value`)
VALUES ('${blockchain.raw}', '$btcRestoreKey', '${btcRestoreMode.raw}')
Expand All @@ -46,8 +46,8 @@ object Migration_40_41 : Migration(40, 41) {
}

}
database.execSQL("DROP TABLE BlockchainSetting")
database.execSQL("DROP TABLE AccountSettingRecord")
db.execSQL("DROP TABLE BlockchainSetting")
db.execSQL("DROP TABLE AccountSettingRecord")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_41_42 : Migration(41, 42) {
override fun migrate(database: SupportSQLiteDatabase) {
override fun migrate(db: SupportSQLiteDatabase) {
//clean LogEntry table from WalletConnect logs
database.execSQL("DELETE FROM LogEntry WHERE actionId LIKE 'WalletConnect%'")
db.execSQL("DELETE FROM LogEntry WHERE actionId LIKE 'WalletConnect%'")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_42_43 : Migration(42, 43) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `ProFeaturesSessionKey` (`nftName` TEXT NOT NULL, `accountId` TEXT NOT NULL, `address` TEXT NOT NULL, `key` TEXT NOT NULL, PRIMARY KEY(`nftName`, `accountId`))")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE IF NOT EXISTS `ProFeaturesSessionKey` (`nftName` TEXT NOT NULL, `accountId` TEXT NOT NULL, `address` TEXT NOT NULL, `key` TEXT NOT NULL, PRIMARY KEY(`nftName`, `accountId`))")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_43_44 : Migration(43, 44) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `SyncerState` (`key` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`key`))")
database.execSQL("CREATE TABLE IF NOT EXISTS `EvmAddressLabel` (`address` TEXT NOT NULL, `label` TEXT NOT NULL, PRIMARY KEY(`address`))")
database.execSQL("CREATE TABLE IF NOT EXISTS `EvmMethodLabel` (`methodId` TEXT NOT NULL, `label` TEXT NOT NULL, PRIMARY KEY(`methodId`))")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("CREATE TABLE IF NOT EXISTS `SyncerState` (`key` TEXT NOT NULL, `value` TEXT NOT NULL, PRIMARY KEY(`key`))")
db.execSQL("CREATE TABLE IF NOT EXISTS `EvmAddressLabel` (`address` TEXT NOT NULL, `label` TEXT NOT NULL, PRIMARY KEY(`address`))")
db.execSQL("CREATE TABLE IF NOT EXISTS `EvmMethodLabel` (`methodId` TEXT NOT NULL, `label` TEXT NOT NULL, PRIMARY KEY(`methodId`))")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase

object Migration_44_45 : Migration(44, 45) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("DROP TABLE IF EXISTS `NftCollectionRecord`")
database.execSQL("CREATE TABLE IF NOT EXISTS `NftCollectionRecord` (`accountId` TEXT NOT NULL, `uid` TEXT NOT NULL, `name` TEXT NOT NULL, `imageUrl` TEXT, `totalSupply` INTEGER NOT NULL, `averagePrice7d_coinTypeId` TEXT, `averagePrice7d_value` TEXT, `averagePrice30d_coinTypeId` TEXT, `averagePrice30d_value` TEXT, `floorPrice_coinTypeId` TEXT, `floorPrice_value` TEXT, `external_url` TEXT, `discord_url` TEXT, `twitter_username` TEXT, PRIMARY KEY(`accountId`, `uid`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL("DROP TABLE IF EXISTS `NftCollectionRecord`")
db.execSQL("CREATE TABLE IF NOT EXISTS `NftCollectionRecord` (`accountId` TEXT NOT NULL, `uid` TEXT NOT NULL, `name` TEXT NOT NULL, `imageUrl` TEXT, `totalSupply` INTEGER NOT NULL, `averagePrice7d_coinTypeId` TEXT, `averagePrice7d_value` TEXT, `averagePrice30d_coinTypeId` TEXT, `averagePrice30d_value` TEXT, `floorPrice_coinTypeId` TEXT, `floorPrice_value` TEXT, `external_url` TEXT, `discord_url` TEXT, `twitter_username` TEXT, PRIMARY KEY(`accountId`, `uid`), FOREIGN KEY(`accountId`) REFERENCES `AccountRecord`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED)")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import io.horizontalsystems.marketkit.models.TokenType
import kotlinx.parcelize.Parcelize

object Migration_45_46 : Migration(45, 46) {
override fun migrate(database: SupportSQLiteDatabase) {
renameColumnEnabledWallet(database)
renameColumnEnabledWalletCache(database)
renameColumnRestoreSettingRecord(database)
renameColumnNftCollectionRecord(database)
renameColumnNftAssetRecord(database)
deleteRecordsAppLogMemory(database)
override fun migrate(db: SupportSQLiteDatabase) {
renameColumnEnabledWallet(db)
renameColumnEnabledWalletCache(db)
renameColumnRestoreSettingRecord(db)
renameColumnNftCollectionRecord(db)
renameColumnNftAssetRecord(db)
deleteRecordsAppLogMemory(db)
}

private fun renameColumnEnabledWallet(database: SupportSQLiteDatabase) {
Expand Down
Loading

0 comments on commit 44c6faa

Please sign in to comment.