| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace addons\QiJuhe\console\migrations;
- use yii\db\Migration;
- /**
- * Class M231129111337UpdateMenuName
- */
- class M231129111337UpdateMenuName extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = "UPDATE `qimall_menu` SET `title` = '选品中心' WHERE `addons_name` = 'QiJuhe' AND `url` = 'qi-juhe/storage/index'";
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M231129111337UpdateMenuName cannot be reverted.\n";
- return false;
- }
- }
|