From b7378867c067e682ab5f2a4a35a181eb553cb98f Mon Sep 17 00:00:00 2001 From: wangys <3401275564@qq.com> Date: Fri, 2 Jan 2026 16:18:32 +0800 Subject: [PATCH] =?UTF-8?q?pg=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/urbanLifeline/postgres/Dockerfile.pg | 3 +-- docker/urbanLifeline/postgres/init/sql/initDataPermission.sql | 2 +- .../.bin/database/postgres/sql/initDataPermission.sql | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/urbanLifeline/postgres/Dockerfile.pg b/docker/urbanLifeline/postgres/Dockerfile.pg index 889772ce..9418c6ad 100644 --- a/docker/urbanLifeline/postgres/Dockerfile.pg +++ b/docker/urbanLifeline/postgres/Dockerfile.pg @@ -10,7 +10,7 @@ ENV LANG=C.UTF-8 \ TZ=Asia/Shanghai \ PGCLIENTENCODING=UTF8 -# 安装时区数据 +# 安装时区数据(contrib 扩展已包含在官方 postgres 镜像中) RUN apk add --no-cache tzdata \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone @@ -91,7 +91,6 @@ EOSQL echo "==========================================" echo "✅ 数据库初始化完成!" -echo "默认用户: admin, 密码: 123456" echo "==========================================" EOF diff --git a/docker/urbanLifeline/postgres/init/sql/initDataPermission.sql b/docker/urbanLifeline/postgres/init/sql/initDataPermission.sql index 2afabc29..ed27224e 100644 --- a/docker/urbanLifeline/postgres/init/sql/initDataPermission.sql +++ b/docker/urbanLifeline/postgres/init/sql/initDataPermission.sql @@ -425,7 +425,7 @@ INSERT INTO sys.tb_sys_view_permission ( ('VP-W106', 'view_workcase_admin_log', 'perm_workcase_log', 'system', NULL, now(), false), ('VP-W107', 'view_workcase_admin_log_knowledge', 'perm_workcase_log', 'system', NULL, now(), false), ('VP-W108', 'view_workcase_admin_log_workcase', 'perm_workcase_log', 'system', NULL, now(), false), -('VP-W109', 'view_workcase_admin_log_system', 'perm_workcase_log', 'system', NULL, now(), false), +('VP-W109', 'view_workcase_admin_log_system', 'perm_workcase_log', 'system', NULL, now(), false); -- -- 用户管理视图关联用户权限(已注释,因为view_user被注释掉了) -- -- ('VP-0001', 'view_user', 'perm_user_view', 'system', NULL, now(), false), diff --git a/urbanLifelineServ/.bin/database/postgres/sql/initDataPermission.sql b/urbanLifelineServ/.bin/database/postgres/sql/initDataPermission.sql index 2afabc29..ed27224e 100644 --- a/urbanLifelineServ/.bin/database/postgres/sql/initDataPermission.sql +++ b/urbanLifelineServ/.bin/database/postgres/sql/initDataPermission.sql @@ -425,7 +425,7 @@ INSERT INTO sys.tb_sys_view_permission ( ('VP-W106', 'view_workcase_admin_log', 'perm_workcase_log', 'system', NULL, now(), false), ('VP-W107', 'view_workcase_admin_log_knowledge', 'perm_workcase_log', 'system', NULL, now(), false), ('VP-W108', 'view_workcase_admin_log_workcase', 'perm_workcase_log', 'system', NULL, now(), false), -('VP-W109', 'view_workcase_admin_log_system', 'perm_workcase_log', 'system', NULL, now(), false), +('VP-W109', 'view_workcase_admin_log_system', 'perm_workcase_log', 'system', NULL, now(), false); -- -- 用户管理视图关联用户权限(已注释,因为view_user被注释掉了) -- -- ('VP-0001', 'view_user', 'perm_user_view', 'system', NULL, now(), false),