M240812060019AlterQimallUserWithdrawLog.php 829 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace app\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M240812060019AlterQimallUserWithdrawLog
  6. */
  7. class M240812060019AlterQimallUserWithdrawLog extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->execute("ALTER table qimall_user_withdraw_log add source VARCHAR(255) not null default ''COMMENT'来源';");
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function safeDown()
  20. {
  21. echo "M240812060019AlterQimallUserWithdrawLog 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 "M240812060019AlterQimallUserWithdrawLog cannot be reverted.\n";
  32. return false;
  33. }
  34. */
  35. }