M231230082746StoreReserveMenu.php 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace addons\Store\console\migrations;
  3. use yii\db\Migration;
  4. /**
  5. * Class M231230082746StoreReserveMenu
  6. */
  7. class M231230082746StoreReserveMenu extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->execute("INSERT INTO `qimall_addons_store_menu` (`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`, `addons_name`, `is_addon`) VALUES (46, '预约列表', '0', 42, 'store/client/reserve-order/index', '', 2, 0, 999, NULL, '', 1, 0, 0, '', 0);
  15. INSERT INTO `qimall_addons_store_menu` (`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`, `addons_name`, `is_addon`) VALUES (45, '技师管理', '0', 42, 'store/client/reserve-staff/index', '', 2, 0, 999, NULL, '', 1, 0, 0, '', 0);
  16. INSERT INTO `qimall_addons_store_menu` (`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`, `addons_name`, `is_addon`) VALUES (44, '申请列表', '0', 42, 'store/client/reserve-apply/index', '', 2, 0, 999, NULL, '', 1, 0, 0, '', 0);
  17. INSERT INTO `qimall_addons_store_menu` (`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`, `addons_name`, `is_addon`) VALUES (43, '数据概况', '0', 42, 'store/client/reserve-data/index', '', 2, 0, 999, NULL, '', 1, 0, 0, '', 0);
  18. INSERT INTO `qimall_addons_store_menu` (`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`, `addons_name`, `is_addon`) VALUES (42, '服务', '0', 0, 'store/client/reserve-data/index', 'el-icon-location', 1, 0, 999, NULL, '', 1, 0, 0, '', 0);
  19. ");
  20. }
  21. /**
  22. * {@inheritdoc}
  23. */
  24. public function safeDown()
  25. {
  26. echo "M231230082746StoreReserveMenu cannot be reverted.\n";
  27. return false;
  28. }
  29. /*
  30. // Use up()/down() to run migration code without a transaction.
  31. public function up()
  32. {
  33. }
  34. public function down()
  35. {
  36. echo "M231230082746StoreReserveMenu cannot be reverted.\n";
  37. return false;
  38. }
  39. */
  40. }