M231011074814FixTotalExpenses.php 754 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace addons\Store\console\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M231011074814FixTotalExpenses
  6. */
  7. class M231011074814FixTotalExpenses extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. \addons\Store\common\models\StoreWithdrawLog::fixTotalExpenses();
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function safeDown()
  20. {
  21. echo "M231011074814FixTotalExpenses cannot be reverted.\n";
  22. return false;
  23. }
  24. /*
  25. // Use up()/down() to run migration code without a transaction.
  26. public function up()
  27. {
  28. }
  29. public function down()
  30. {
  31. echo "M231011074814FixTotalExpenses cannot be reverted.\n";
  32. return false;
  33. }
  34. */
  35. }