修复td数据库初始化sql错误

Signed-off-by: Remember to Smile * <928255825@qq.com>
V0.5.x
Remember to Smile * 2023-09-06 03:14:43 +00:00 committed by Gitee
parent d37bf272aa
commit 79e868095a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ public class DbStructureDataImpl implements IDbStructureData {
@Override
@PostConstruct
public void initDbStructure() {
tdRestApi.execSql("CREATE DATABASEIF NOT EXISTS iotkit KEEP 365 DURATION 10 BUFFER 16 WAL_LEVEL 1;");
tdRestApi.execSql("CREATE DATABASE IF NOT EXISTS iotkit KEEP 365 DURATION 10 BUFFER 16 WAL_LEVEL 1;");
//创建规则日志超级表
String sql = TableManager.getCreateSTableSql("rule_log", List.of(