diff --git a/community_server/src/Controller/MigrationsController.php b/community_server/src/Controller/MigrationsController.php index 31fa41001..97481aff5 100644 --- a/community_server/src/Controller/MigrationsController.php +++ b/community_server/src/Controller/MigrationsController.php @@ -64,6 +64,7 @@ class MigrationsController extends AppController $commands = [ [$blockchainTypesTable, 'fillWithDefault'], [$transactionTypesTable, 'fillWithDefault'], + [$stateBalancesTable, 'truncate'], [$transactionsTable, 'fillStateUserTransactions'], [$stateBalancesTable, 'updateAllBalances'] ]; diff --git a/community_server/src/Model/Table/StateBalancesTable.php b/community_server/src/Model/Table/StateBalancesTable.php index 7e5f96be9..25d588f30 100644 --- a/community_server/src/Model/Table/StateBalancesTable.php +++ b/community_server/src/Model/Table/StateBalancesTable.php @@ -24,7 +24,7 @@ use Cake\I18n\FrozenTime; * * @mixin \Cake\ORM\Behavior\TimestampBehavior */ -class StateBalancesTable extends Table +class StateBalancesTable extends AppTable { private static $startDecayDate = null; /**