diff --git a/modules/core/src/main/resources/db/upgrade/core/mssql/mssql_4.0.1.sql b/modules/core/src/main/resources/db/upgrade/core/mssql/mssql_4.0.1.sql index e3c1f931..48ce8f3a 100644 --- a/modules/core/src/main/resources/db/upgrade/core/mssql/mssql_4.0.1.sql +++ b/modules/core/src/main/resources/db/upgrade/core/mssql/mssql_4.0.1.sql @@ -2,6 +2,8 @@ -- 日志表新增执行时间字段 ALTER TABLE [dbo].[${_prefix}sys_log] ADD [execute_time] decimal(19) NULL; +-- 重命名待推送为已完成消息表 +execute sp_rename N'${_prefix}sys_msg_push_wait', N'${_prefix}sys_msg_pushed'; + -- 更新模块数据库版本 update ${_prefix}sys_module set current_version = '4.0.1' where module_code = 'core'; -commit; \ No newline at end of file diff --git a/modules/core/src/main/resources/db/upgrade/core/mysql/mysql_4.0.1.sql b/modules/core/src/main/resources/db/upgrade/core/mysql/mysql_4.0.1.sql index 1e763f4e..428167f3 100644 --- a/modules/core/src/main/resources/db/upgrade/core/mysql/mysql_4.0.1.sql +++ b/modules/core/src/main/resources/db/upgrade/core/mysql/mysql_4.0.1.sql @@ -3,6 +3,9 @@ ALTER TABLE ${_prefix}sys_log ADD COLUMN `execute_time` decimal(19,0) NULL COMMENT '执行时间' AFTER `browser_name`; +-- 重命名待推送为已完成消息表 +RENAME TABLE ${_prefix}sys_msg_push_wait TO ${_prefix}sys_msg_pushed; + -- 更新模块数据库版本 update ${_prefix}sys_module set current_version = '4.0.1' where module_code = 'core'; commit; \ No newline at end of file diff --git a/modules/core/src/main/resources/db/upgrade/core/oracle/oracle_4.0.1.sql b/modules/core/src/main/resources/db/upgrade/core/oracle/oracle_4.0.1.sql index f24845f4..38af75f7 100644 --- a/modules/core/src/main/resources/db/upgrade/core/oracle/oracle_4.0.1.sql +++ b/modules/core/src/main/resources/db/upgrade/core/oracle/oracle_4.0.1.sql @@ -3,6 +3,9 @@ ALTER TABLE ${_prefix}sys_log ADD execute_time NUMBER(19) NULL; COMMENT ON COLUMN ${_prefix}sys_log.execute_time IS '执行时间'; +-- 重命名待推送为已完成消息表 +ALTER TABLE ${_prefix}sys_msg_push_wait RENAME TO ${_prefix}sys_msg_pushed; + -- 更新模块数据库版本 update ${_prefix}sys_module set current_version = '4.0.1' where module_code = 'core'; commit; \ No newline at end of file diff --git a/modules/core/src/main/resources/db/upgrade/core/versions b/modules/core/src/main/resources/db/upgrade/core/versions index 0c89fc92..b648b3bb 100644 --- a/modules/core/src/main/resources/db/upgrade/core/versions +++ b/modules/core/src/main/resources/db/upgrade/core/versions @@ -1 +1,2 @@ -4.0.0 \ No newline at end of file +4.0.0 +4.0.1 \ No newline at end of file