| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M231011074814FixTotalExpenses
- */
- class M231011074814FixTotalExpenses extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- \addons\Store\common\models\StoreWithdrawLog::fixTotalExpenses();
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M231011074814FixTotalExpenses cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M231011074814FixTotalExpenses cannot be reverted.\n";
- return false;
- }
- */
- }
|