# 祥云升级单

# 云系列 2.6 福星 祥瑞 10.9

1: 虚拟主机管理系统 -> 备份站点数据

2: 链接FTP 将10.9程序传入FTP (直接覆盖)

3: 打开Navicat 将老站数据库导入oldxypt 新数据库是demo

4: 打开postman 运行命令 http://ceshi.test/old-mysql?oldzhan=0&oss=1&type=1 (填充数据库表 )

5: 开始对比处理数据库表

6: 设计 xypt_config表, 添加一条 名称 uptimeline 类型 int 长度10

7: 设计 产品、新闻、案例、相册表, uploadfiles 字段类型改为text 长度改为0 , 新闻多处理两个字段 img_path 勾选不是null, linkurls 和 is_send 不勾选不是null

8: 打开xyot_model表, 添加记录:

id name slug page_limit order_rule
8 单页模型 pages 0 null
9 图文 imgtext 0 null
10 文章 infos 12 orders-DESC
11 产品说明书 broadcast 0 orders-DESC

9: 打开 xypt_fields 表, 添加记录:

id model_id title field flag type option is_required sort_order timeline is_tel form_id
62 7 姓名 name 1 input null 1 null 0 4 1
63 7 电话 contact 1 input null 1 null 0 2 1
64 7 邮箱 email 1 input null 0 null 0 3 1
65 7 留言内容 content 1 text null 1 null 0 1 1

10: 打开 xypt_inquiry 表, 设置form_id 字段为1; id 为1;

11: 设计 xypt_inquiry 表, email 和 form_id 字段 不勾选不是null form_id(默认为0); 老站后台有留言运行命令 http://ceshi.test/old-mysql?oldzhan=0&oss=1&type=3 (填充数据库表 )

12: 导出数据表 替换数据库 (虚拟主机管理系统站点)

13: 进入虚拟主机管理系统,更新站点名称(公司名称后面加上10.9),更新站点版本 云海版, 版本号更新10.9 , 小程序功能加上;

14: 打开 xypt_templates 复制第一条name 为 component.json 的 content 内容, 替换掉 第三条 component.json 的 content 内容;

15: 进入网站后台,更新老站的 html css; 网站后台勾选 AI新闻发布状态、功能区分 、 自动过滤违禁词, 应用市场勾选第三方js 代码等