mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
update:将设备默认设置成自动升级
This commit is contained in:
parent
f3c385c66c
commit
34ddb9a15f
4 changed files with 5 additions and 22 deletions
|
|
@ -105,6 +105,7 @@ public class DeviceServiceImpl extends BaseServiceImpl<DeviceDao, DeviceEntity>
|
|||
deviceEntity.setMacAddress(macAddress);
|
||||
deviceEntity.setUserId(user.getId());
|
||||
deviceEntity.setCreator(user.getId());
|
||||
deviceEntity.setAutoUpdate(1);
|
||||
deviceEntity.setCreateDate(currentTime);
|
||||
deviceEntity.setUpdater(user.getId());
|
||||
deviceEntity.setUpdateDate(currentTime);
|
||||
|
|
|
|||
|
|
@ -1,6 +0,0 @@
|
|||
-- 删除server.ip和server.port,改成在xiaozhi-server中配置,方便运行多个websocket
|
||||
delete from `sys_params` where id = 100;
|
||||
delete from `sys_params` where id = 101;
|
||||
|
||||
INSERT INTO `sys_params` (id, param_code, param_value, value_type, param_type, remark) VALUES (106, 'server.websocket', 'null', 'string', 1, 'websocket地址,多个用;分隔');
|
||||
|
||||
|
|
@ -18,3 +18,5 @@ CREATE TABLE IF NOT EXISTS `ai_ota` (
|
|||
`create_date` datetime DEFAULT NULL COMMENT '创建时间',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='固件信息表';
|
||||
|
||||
update ai_device set auto_update = 1;
|
||||
|
|
@ -65,13 +65,6 @@ databaseChangeLog:
|
|||
- sqlFile:
|
||||
encoding: utf8
|
||||
path: classpath:db/changelog/202504221135.sql
|
||||
- changeSet:
|
||||
id: 202504221646
|
||||
author: John
|
||||
changes:
|
||||
- sqlFile:
|
||||
encoding: utf8
|
||||
path: classpath:db/changelog/202504221646.sql
|
||||
- changeSet:
|
||||
id: 202504221555
|
||||
author: John
|
||||
|
|
@ -80,16 +73,9 @@ databaseChangeLog:
|
|||
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
|
||||
id: 202504251421
|
||||
author: jiangkunyin
|
||||
changes:
|
||||
- sqlFile:
|
||||
encoding: utf8
|
||||
path: classpath:db/changelog/202504251420.sql
|
||||
path: classpath:db/changelog/202504251421.sql
|
||||
Loading…
Reference in a new issue