| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M230908065027UpdateData
- */
- class M230908065027UpdateData extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- try {
- $sql ="UPDATE qimall_addons set title = '团队数据' where name = 'TeamData';";
- $this->execute($sql);
- $sql = "UPDATE qimall_addons set brief_introduction='团队业绩阶梯奖励' where name = 'Achievement';";
- $this->execute($sql);
- $sql = "UPDATE qimall_addons set brief_introduction='三三复制团队快速裂变' where name = 'Rebate';";
- $this->execute($sql);
- $sql = "UPDATE qimall_addons set brief_introduction='生成授权证书,代理快速发展团队' where name = 'Certificate';";
- $this->execute($sql);
- }catch (\Exception $e){
- }
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M230908065027UpdateData cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M230908065027UpdateData cannot be reverted.\n";
- return false;
- }
- */
- }
|