| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace addons\ReservationService\console\migrations;
- use yii\db\Migration;
- /**
- * Class M250603084112AlterQimallAddonsReservationServiceOrder
- */
- class M250603084112AlterQimallAddonsReservationServiceOrder extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "UPDATE qimall_addons_reservation_service_order set service_status = 100 where server_status = 4 and service_status!=100;";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250603084112AlterQimallAddonsReservationServiceOrder cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M250603084112AlterQimallAddonsReservationServiceOrder cannot be reverted.\n";
- return false;
- }
- */
- }
|