Files
lgp-admin-plus-api/README.md
LQ bcf54c2727 初始化
缺陷:主题配色需要优化整体的同风格
2026-08-14 23:21:21 +08:00

40 lines
1000 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Nl Admin
## 配置好数据库连接信息后执行
```aiignore
php artisan sql:run-nl-admin
```
### 使用示例
```cmd
# 基本用法
php artisan sql:run-nl-admin
# 指定SQL文件路径
php artisan sql:run-nl-admin --file=storage/sql/setup.sql
# 强制重置已有数据库
php artisan sql:run-nl-admin --force
# 创建新数据库
php artisan sql:run-nl-admin --database=my_new_db
```
### 合并数据使用示例
```cmd
# 1. 补列(解除 my-info Unknown column department_id
# 在 Navicat 选中库 cc_new_stash执行 database/sql/rbac_migrate_ddl.sql
# 或mysql ... cc_new_stash < database/sql/rbac_migrate_ddl.sql
# 2. 迁移菜单 / 同步路由
php artisan lgp:menu-sync
php artisan lgp:endpoint-sync
# 3. 账号角色体检(只读)
php artisan lgp:rbac-audit
# 等价 SQLdatabase/sql/rbac_audit.sql
# 4. 账号角色迁移(有事务/ID 偏移/幂等,仍走 artisan
php artisan lgp:rbac-migrate --dry-run
php artisan lgp:rbac-migrate --force
```