| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace addons\ValetOrder\console\migrations;
- use yii\db\Migration;
- /**
- * Class M230726104651ValetOrderIsBackend
- */
- class M230726104651ValetOrderIsBackend extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute("ALTER TABLE `qimall_addons_valet_order` ADD COLUMN `is_backend` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否后台下单' AFTER `parent_mobile`;");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230726104651ValetOrderIsBackend cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230726104651ValetOrderIsBackend cannot be reverted.\n";
- return false;
- }
- */
- }
|