fix_:failed test TestMigrateWalletJsonBlobs

This commit is contained in:
frank 2024-05-25 09:17:54 +08:00
parent 37404a6e6e
commit 9e10612a61
1 changed files with 5 additions and 2 deletions

View File

@ -25,7 +25,6 @@ import (
const nodeCfgMigrationDate = 1640111208
var customSteps = []*sqlite.PostStep{
{Version: 1662365868, CustomMigration: fixMissingKeyUIDForAccounts},
{Version: 1674136690, CustomMigration: migrateEnsUsernames},
{Version: 1686048341, CustomMigration: migrateWalletJSONBlobs, RollBackVersion: 1686041510},
{Version: 1687193315, CustomMigration: migrateWalletTransferFromToAddresses, RollBackVersion: 1686825075},
@ -58,8 +57,12 @@ func doMigration(db *sql.DB) error {
}
}
postSteps := []*sqlite.PostStep{
{Version: 1662365868, CustomMigration: fixMissingKeyUIDForAccounts},
}
postSteps = append(postSteps, customSteps...)
// Run all the new migrations
err = migrations.Migrate(db, customSteps)
err = migrations.Migrate(db, postSteps)
if err != nil {
return err
}