- 删除 Addon 相关控制器、模型、语言包和视图文件 - 新增服务类型支持一口价属性配置 - 新增系统监控、用户资料、订单评价等后端管理页面 - 新增数据库表结构及索引优化脚本 - 更新应用版本号至 1.0.44 - 更新小程序应用标识 - 完善 .gitignore 配置
17 行
561 B
PHP
17 行
561 B
PHP
<?php
|
|
/**
|
|
* 优匠优服后台菜单分组与排序重整脚本(与 db/schema_phase15_menu_reorganize.sql 保持一致)
|
|
*/
|
|
$pdo = new PDO("mysql:host=127.0.0.1;port=3306;dbname=yjyf;charset=utf8mb4", "yjyf", "4bRz2NYz6pDhsCk4");
|
|
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
|
|
$sqlFile = __DIR__ . '/../db/schema_phase15_menu_reorganize.sql';
|
|
if (!file_exists($sqlFile)) {
|
|
die("SQL file not found: $sqlFile\n");
|
|
}
|
|
|
|
$sql = file_get_contents($sqlFile);
|
|
$pdo->exec($sql);
|
|
|
|
echo "Menu reorganization (Phase 15) completed successfully!\n";
|