| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace addons\Printer\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240513164129AddPickupToTmp
- */
- class M240513164129AddPickupToTmp extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql="ALTER TABLE `qimall_addons_printer_template` ADD COLUMN `pickup_code` tinyint(1) NOT NULL DEFAULT 0 COMMENT '自提码' AFTER `head_info`";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240513164129AddPickupToTmp cannot be reverted.\n";
- return false;
- }
- }
|