Files
JayuCloud/docx/design/build-artifact-and-sql-design.md
T

36 lines
1.2 KiB
Markdown
Raw 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.
# 构建产物与 SQL 脚本设计
## Maven 产物目录
Maven 打包产物统一放在:
```text
artifacts/maven/
```
建议产物命名:
```text
artifacts/maven/FingertipDesigner-Core.jar
artifacts/maven/FingertipDesigner-Gateway.jar
```
## SQL 基线
当前唯一初始化 SQL:
```text
scripts/sql/init/FingertipDesigner.sql
```
开发、测试、上线空库初始化只执行该文件。该文件包含完整表结构、索引、约束、平台管理员、基础权限、系统参数、协议、MessageHub 与 VIP 基础配置。
`scripts/sql/migrations` 当前不保留历史迁移 SQL。旧项目命名、MinIO 三副本对象存储、预约手动项目展示控制等变更已经合并进 `scripts/sql/init/FingertipDesigner.sql`。
## SQL 管理规则
- 新环境空库初始化只执行 `scripts/sql/init/FingertipDesigner.sql`。
- 后续新增表、字段、索引或运行必需种子数据时,必须同步更新该初始化 SQL。
- 已部署生产库的数据升级不直接复用初始化 SQL;如需升级已有库,必须单独制定迁移方案并经人工确认。
- SQL 中不得写入环境密码、Nacos 配置或测试库连接信息。