| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M241011035241AlterQimallOrderReserveComments
- */
- class M241011035241AlterQimallOrderReserveComments extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "
- alter table qimall_order_reserve_comments add `staff_score` tinyint(3) NOT NULL DEFAULT '0' COMMENT '技师评分';
- alter table qimall_order_reserve_comments add `environment_score` tinyint(3) NOT NULL DEFAULT '0' COMMENT '环境评分';
- alter table qimall_order_reserve_comments add `service_score` tinyint(3) NOT NULL DEFAULT '0' COMMENT '服务评分';
- alter table qimall_order_reserve_comments add `show_tech` tinyint(1) NOT NULL DEFAULT '0' COMMENT '门店预约商品:是否显示技师信息1:是;0否';
- ";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M241011035241AlterQimallOrderReserveComments cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M241011035241AlterQimallOrderReserveComments cannot be reverted.\n";
- return false;
- }
- */
- }
|