execute($sql); $sql="INSERT INTO `qimall_addons_store_menu`(`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES (27, '优惠券管理', '0', 26, 'store/client/coupon/index', '', 2, 0, 999, NULL, '', 1, 0, 0)"; $this->execute($sql); $sql = "INSERT INTO `qimall_addons_store_menu`(`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES (28, '会员优惠券', '0', 26, 'store/client/coupon/user-coupon', '', 2, 0, 999, NULL, '', 1, 0, 0)"; $this->execute($sql); $sql="INSERT INTO `qimall_addons_store_menu`(`id`, `title`, `app_id`, `pid`, `url`, `icon`, `level`, `dev`, `sort`, `params`, `tree`, `status`, `created_at`, `updated_at`) VALUES (30, '优惠设置', '0', 8, 'store/client/discount/index', '', 2, 0, 999, NULL, '', 1, 0, 0)"; $this->execute($sql); }catch (\Exception $e){ var_dump($e->getMessage()); } } /** * {@inheritdoc} */ public function safeDown() { echo "M220908060913InsertQimallAddonsStoreMenu cannot be reverted.\n"; return false; } /* // Use up()/down() to run migration code without a transaction. public function up() { } public function down() { echo "M220908060913InsertQimallAddonsStoreMenu cannot be reverted.\n"; return false; } */ }