管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-02-13 3c0b637860404ef2592e49d9994e3cf70d493b8a
1
已修改2个文件
19 ■■■■ 文件已修改
data/db_tab.sql 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/update.sql 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/db_tab.sql
@@ -113,7 +113,7 @@
comment on column lf.sys_dir.id is '主键ID';
comment on column lf.sys_dir.pid is '父ID:0-根节点';
comment on column lf.sys_dir.name is '名称';
comment on column lf.sys_dir.code is '目录编码';
comment on column lf.sys_dir.exts is '扩展名';
comment on column lf.sys_dir.descr is '目录说明';
comment on column lf.sys_dir.level is '层级:0-根节点';
comment on column lf.sys_dir.checks is '检查项';
@@ -132,6 +132,7 @@
create table lf.sys_user(
  id serial primary key,
  depid integer default 1,
  depcode varchar(24),
  uid varchar(20) unique,
  uname varchar(50),
  pwd varchar(200),
@@ -154,6 +155,7 @@
comment on table lf.sys_user is '用户表';
comment on column lf.sys_user.id is '主键ID';
comment on column lf.sys_user.depid is '单位ID';
comment on column lf.sys_user.depcode is '单位编码';
comment on column lf.sys_user.uid is '用户ID';
comment on column lf.sys_user.uname is '用户名';
comment on column lf.sys_user.pwd is 'MD5密码';
data/update.sql
@@ -98,7 +98,8 @@
select fn_rec_query(a.dirid,'dir'),a.* from lf.sys_meta_new a where dirid = ANY(fn_rec_array((select id from rs), 'dir'));
select * from lf.sys_meta where substr(path,1,2) = '2\';
--------------------------------------------------------- alter sequence lf.sys_meta_id_seq restart with 1;
--------------------------------------------------------- 01
-- alter sequence lf.sys_meta_id_seq restart with 1;
update lf.sys_operate set modular2='源数据管理' where modular2='元数据';
delete from lf.sys_dep where id = 59;
@@ -109,7 +110,7 @@
alter table lf.sys_dep alter column code type varchar(24);
select id,pid,name,code,level,order_num from lf.sys_dep where code is not null order by code;
---------------------------------------------------------
--------------------------------------------------------- 02
select * from lf.sys_dir  order by id;
alter table lf.sys_dir alter column code type varchar(200);
@@ -120,9 +121,17 @@
update lf.sys_dir set bak=checks where checks is not null and position('check' in checks)=0;
update lf.sys_dir set checks=null where position('check' in checks)=0;
alter table lf.sys_dir add column code varchar(24);
comment on column lf.sys_dir.exts is '扩展名';
comment on column lf.sys_dir.checks is '检查项';
select id,pid,name,code,level,order_num from lf.sys_dir where code is not null order by code;
---------------------------------------------------------
--------------------------------------------------------- 03
alter table lf.sys_user add column depcode varchar(24);
comment on column lf.sys_user.depcode is '单位编码';
update lf.sys_user a set depcode = (select code from lf.sys_dep b where b.id = a.depid);
select * from lf.sys_user order by id;
---------------------------------------------------------
select * from lf.sys_meta;