| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M240311102032DeleteScoreMallDiy
- */
- class M240311102032DeleteScoreMallDiy extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql = "UPDATE `qimall_diy_components` SET `status` = -1 WHERE `code` = 'score-mall'";
- $this->execute($sql);
- } catch (\Exception $e) {
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M240311102032DeleteScoreMallDiy cannot be reverted.\n";
- return false;
- }
- }
|