| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace addons\ReservationService\console\migrations;
- use yii\db\Migration;
- /**
- * Class M240304071046QimallAddonsReservationServiceOrder
- */
- class M240304071046QimallAddonsReservationServiceOrder extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $this->execute(" alter table qimall_addons_reservation_service_order add secondary_card_id int(11) not null default 0 comment '次卡id';");
- $this->execute(" alter table qimall_addons_reservation_service_order add secondary_card_no varchar(255) not null default '' comment '次卡号';");
- $this->execute(" alter table qimall_addons_reservation_service_order add reservation_model tinyint(1) NOT NULL DEFAULT '0' COMMENT '预约模式:1:预约门店;2:预约服务人';");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240304071046QimallAddonsReservationServiceOrder cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M240304071046QimallAddonsReservationServiceOrder cannot be reverted.\n";
- return false;
- }
- */
- }
|