M241119159123AddColumnIsCloseToPaymentTrade.php 577 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M241119159123AddColumnIsCloseToPaymentTrade
  6. */
  7. class M241119159123AddColumnIsCloseToPaymentTrade extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $sql = <<<SQL
  15. ALTER TABLE `qimall_payment_trade`
  16. ADD COLUMN `is_close` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付流水是否关闭';
  17. SQL;
  18. $this->execute($sql);
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function safeDown()
  24. {
  25. return false;
  26. }
  27. }