M250303093358InsertQimallMenu.php 805 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace app\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M250303093358InsertQimallMenu
  6. */
  7. class M250303093358InsertQimallMenu extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $sql = <<<SQL
  15. 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`)
  16. VALUES ('商城概况', 'backend', 1, '', 0, 5, 'admin/mall/wraparound', '', 2, 1, 0, NULL, 'tr_0 tr_5', 1, 1734685008, 1734685068);
  17. SQL;
  18. $this->execute($sql);
  19. }
  20. /**
  21. * {@inheritdoc}
  22. */
  23. public function safeDown()
  24. {
  25. echo "M250303093358InsertQimallMenu cannot be reverted.\n";
  26. return false;
  27. }
  28. }