| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Handles adding columns to table `{{%order_express}}`.
- */
- class M241114075657AddNumsColumnToOrderExpressTable extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- ALTER TABLE `qimall_order_express`
- ADD COLUMN `nums` json NULL COMMENT '发货数量 {detail_id: num}';
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- return false;
- }
- }
|