数据库结构更新:子表mf_goods添加乐观锁字段

This commit is contained in:
dataprince 2024-01-25 11:41:04 +08:00
parent eda8a2d33b
commit 4ee432bfee
4 changed files with 7 additions and 2 deletions

View File

@ -522,8 +522,8 @@ CREATE TABLE IF NOT EXISTS `sys_config` (
INSERT INTO `sys_config` (`config_id`, `tenant_id`, `config_name`, `config_key`, `config_value`, `config_type`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES INSERT INTO `sys_config` (`config_id`, `tenant_id`, `config_name`, `config_key`, `config_value`, `config_type`, `version`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES
(1, 0, '主框架页-默认皮肤样式', 'sys.index.skinName', 'skin-blue', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-12 17:56:29', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'), (1, 0, '主框架页-默认皮肤样式', 'sys.index.skinName', 'skin-blue', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-12 17:56:29', '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow'),
(2, 0, '用户管理-账号初始密码', 'sys.user.initPassword', '12345678', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-10-16 16:42:05', '初始化密码 12345678'), (2, 0, '用户管理-账号初始密码', 'sys.user.initPassword', '12345678', 'Y', 0, 1, '2023-06-03 21:32:30', 1, '2023-10-16 16:42:05', '初始化密码 12345678'),
(3, 0, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '深色主题theme-dark浅色主题theme-light'), (3, 0, '主框架页-侧边栏主题', 'sys.index.sideTheme', 'theme-dark', 'Y', 0, 1, '2023-06-03 21:32:30', 1, NULL, '深色主题theme-dark浅色主题theme-light'),
(5, 0, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-13 17:16:25', '是否开启注册用户功能true开启false关闭'), (5, 0, '账号自助-是否开启用户注册功能', 'sys.account.registerUser', 'false', 'N', 0, 1, '2023-06-03 21:32:30', 1, '2023-09-13 17:16:25', '是否开启注册用户功能true开启false关闭'),
(6, 0, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0, 1, '2023-09-30 21:55:15', 1, '2023-12-10 19:49:53', 'true:开启, false:关闭'); (6, 0, 'OSS预览列表资源开关', 'sys.oss.previewListResource', 'true', 'Y', 0, 1, '2023-09-30 21:55:15', 1, '2023-12-10 19:49:53', 'true:开启, false:关闭');
-- 导出 表 ruoyi-flex.sys_dept 结构 -- 导出 表 ruoyi-flex.sys_dept 结构

View File

@ -0,0 +1 @@
---- 升级 from V5.0.0 to V5.1.0:

View File

@ -22,3 +22,7 @@ ALTER COLUMN "job_params" TYPE TEXT,
ALTER COLUMN "job_params" DROP NOT NULL, ALTER COLUMN "job_params" DROP NOT NULL,
ALTER COLUMN "job_params" DROP DEFAULT; ALTER COLUMN "job_params" DROP DEFAULT;
COMMENT ON COLUMN "pj_job_info"."job_params" IS ''; COMMENT ON COLUMN "pj_job_info"."job_params" IS '';
-- 添加乐观锁字段
ALTER TABLE "mf_goods" ADD "version" INTEGER NULL DEFAULT 0;
COMMENT ON COLUMN "mf_goods"."version" IS '乐观锁';