| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class m220803_085248_insert_qimall_express
- */
- class m220803_08578_insert_qimall_menu_11_19 extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "m220803_08578_insert_qimall_menu_11_19 cannot be reverted.\n";
- return false;
- }
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- try {
- $this->insert('qimall_menu',[
- 'title'=>'关注回复',
- 'app_id'=>'backend',
- 'cate_id'=>'2',
- 'addons_name'=>'',
- 'is_addon'=>'0',
- 'pid'=>'77',
- 'url'=>'mall/wechat/follow-reply-rule',
- 'icon'=>'',
- 'level'=>'3',
- 'dev'=>'3',
- 'sort'=>'99',
- 'params'=>'',
- 'tree'=>'tr_39 tr_77',
- 'status'=>'1',
- 'created_at'=>1631687277,
- 'updated_at'=>1631687277,
- ]);
- }catch (\Exception $e){
- }
- }
- public function down()
- {
- echo "m220803_08578_insert_qimall_menu_11_19 cannot be reverted.\n";
- return false;
- }
- }
|