| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\migrations;
- use yii\db\Migration;
- /**
- * Class M250303093358InsertQimallMenu
- */
- class M250303093358InsertQimallMenu extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $sql = <<<SQL
- INSERT INTO `qimall_menu`(`title`, `app_id`, `cate_id`, `addons_name`, `is_addon`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`)
- VALUES ('商城概况', 'backend', 1, '', 0, 5, 'admin/mall/wraparound', '', 2, 1, 0, NULL, 'tr_0 tr_5', 1, 1734685008, 1734685068);
- SQL;
- $this->execute($sql);
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M250303093358InsertQimallMenu cannot be reverted.\n";
- return false;
- }
- }
|