From ca9cb66ae8235e1f9f62b25a05beb6c2e56e8147 Mon Sep 17 00:00:00 2001 From: qianmoQ Date: Tue, 16 May 2023 16:13:26 +0800 Subject: [PATCH] [Core] Fixed h2 db update_time and create_time for sql template --- core/datacap-server/src/main/resources/schema.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/datacap-server/src/main/resources/schema.sql b/core/datacap-server/src/main/resources/schema.sql index 0a0a911d..f0b9997e 100644 --- a/core/datacap-server/src/main/resources/schema.sql +++ b/core/datacap-server/src/main/resources/schema.sql @@ -136,8 +136,8 @@ CREATE TABLE IF NOT EXISTS template_sql description text NULL, plugin varchar(50) NULL COMMENT 'Using plug-ins', configure text NULL COMMENT 'The template must use the configuration information in the key->value format', - create_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, - update_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, + create_time timestamp DEFAULT CURRENT_TIMESTAMP, + update_time timestamp DEFAULT CURRENT_TIMESTAMP, `system` boolean NULL DEFAULT 0 ); TRUNCATE TABLE template_sql;