truncate state balances for migration

This commit is contained in:
Dario Rekowski on RockPI 2021-05-13 11:25:24 +00:00
parent 77f6f679d2
commit 64ecf03841
2 changed files with 2 additions and 1 deletions

View File

@ -64,6 +64,7 @@ class MigrationsController extends AppController
$commands = [
[$blockchainTypesTable, 'fillWithDefault'],
[$transactionTypesTable, 'fillWithDefault'],
[$stateBalancesTable, 'truncate'],
[$transactionsTable, 'fillStateUserTransactions'],
[$stateBalancesTable, 'updateAllBalances']
];

View File

@ -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;
/**