| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M241119159123AddColumnIsCloseToPaymentTrade
- */
- class M241119159123AddColumnIsCloseToPaymentTrade extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_payment_trade`
- ADD COLUMN `is_close` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付流水是否关闭';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|