| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- namespace addons\Store\console\migrations;
- use yii\db\Migration;
- /**
- * Class M231230082746StoreReserveMenu
- */
- class M231230082746StoreReserveMenu extends Migration
- {
- /**
- * {@inheritdoc}
- */
- public function safeUp()
- {
- $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);
- 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);
- 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);
- 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);
- 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);
- ");
- }
- /**
- * {@inheritdoc}
- */
- public function safeDown()
- {
- echo "M231230082746StoreReserveMenu cannot be reverted.\n";
- return false;
- }
- /*
- // Use up()/down() to run migration code without a transaction.
- public function up()
- {
- }
- public function down()
- {
- echo "M231230082746StoreReserveMenu cannot be reverted.\n";
- return false;
- }
- */
- }
|