升级脚本更新

This commit is contained in:
thinkgem
2018-03-29 21:15:46 +08:00
parent 8b2965fe0c
commit f5df7d304f
4 changed files with 11 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -1 +1,2 @@
4.0.0
4.0.0
4.0.1