From f221f5897393a943c1ebbcee4f204389fd215e71 Mon Sep 17 00:00:00 2001 From: 天天写BUG Date: Wed, 9 Aug 2023 15:29:09 +0000 Subject: [PATCH] update sql/postgresql/ruoyi-vue-pro.sql. fix:修复创建新租户,由于data_scope_dept_ids设置的是 not null 但是是空值时候产生错误,插入失败 --- sql/postgresql/ruoyi-vue-pro.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/postgresql/ruoyi-vue-pro.sql b/sql/postgresql/ruoyi-vue-pro.sql index d279476..3b6fecc 100644 --- a/sql/postgresql/ruoyi-vue-pro.sql +++ b/sql/postgresql/ruoyi-vue-pro.sql @@ -5552,7 +5552,7 @@ CREATE TABLE "system_role" "code" varchar(100) COLLATE "pg_catalog"."default" NOT NULL, "sort" int4 NOT NULL, "data_scope" int2 NOT NULL, - "data_scope_dept_ids" varchar(500) COLLATE "pg_catalog"."default" NOT NULL, + "data_scope_dept_ids" varchar(500) COLLATE "pg_catalog"."default" NOT NULL DEFAULT '', "status" int2 NOT NULL, "type" int2 NOT NULL, "remark" varchar(500) COLLATE "pg_catalog"."default", -- libgit2 0.21.4