update:修改ai_ota表编码

This commit is contained in:
hrz 2025-04-25 16:33:25 +08:00
parent d638e512c9
commit 3aca608cdf
2 changed files with 21 additions and 13 deletions

View file

@ -1,8 +1,9 @@
-- 本文件用于初始化固件信息表,无需手动执行,在项目启动时会自动执行
-- -------------------------------------------------------
-- 初始化固件信息表
drop table if exists `ai_ota`;
CREATE TABLE `ai_ota` (
-- 增加server.ota,用于配置ota地址
delete from `sys_params` where id = 107;
INSERT INTO `sys_params` (id, param_code, param_value, value_type, param_type, remark) VALUES (107, 'server.ota', 'null', 'string', 1, 'ota地址');
-- 增加固件信息表
CREATE TABLE IF NOT EXISTS `ai_ota` (
`id` varchar(32) NOT NULL COMMENT 'ID',
`firmware_name` varchar(100) DEFAULT NULL COMMENT '固件名称',
`type` varchar(50) DEFAULT NULL COMMENT '固件类型',
@ -16,4 +17,4 @@ CREATE TABLE `ai_ota` (
`creator` bigint DEFAULT NULL COMMENT '创建者',
`create_date` datetime DEFAULT NULL COMMENT '创建时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='固件信息表';
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='固件信息表';

View file

@ -58,13 +58,6 @@ databaseChangeLog:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202504181536.sql
- changeSet:
id: 202504180758
author: jiangkunyin
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202504180758.sql
- changeSet:
id: 202504221135
author: John
@ -86,3 +79,17 @@ databaseChangeLog:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202504221555.sql
- changeSet:
id: 202504251420
author: John
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202504251420.sql
- changeSet:
id: 202504251420
author: jiangkunyin
changes:
- sqlFile:
encoding: utf8
path: classpath:db/changelog/202504251420.sql