You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
weaver-hrm-organization/docs/sqlupgrade/Oracle/sql202210100103.sql

141 lines
6.8 KiB
MySQL

2 years ago
delete from SystemRightDetail where rightid =2725
/
delete from SystemRightsLanguage where id =2725
/
delete from SystemRights where id =2725
/
delete from SystemRightToGroup where rightid =2725
/
delete from SystemRightType where id =37
/
delete from SystemRightGroups where id =-23
/
insert into SystemRights (id,rightdesc,righttype,detachable) values (2725,'<EFBFBD><EFBFBD>Ա<EFBFBD>ֶζ<EFBFBD><EFBFBD><EFBFBD>','37',0)
/
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2725,8,'Personnel Field Definition','Personnel Field Definition')
/
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2725,9,'<EFBFBD>ˆT<EFBFBD>ֶζ<EFBFBD><EFBFBD>x','<EFBFBD>ˆT<EFBFBD>ֶζ<EFBFBD><EFBFBD>x')
/
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2725,7,'<EFBFBD><EFBFBD>Ա<EFBFBD>ֶζ<EFBFBD><EFBFBD><EFBFBD>','<EFBFBD><EFBFBD>Ա<EFBFBD>ֶζ<EFBFBD><EFBFBD><EFBFBD>')
/
Delete from LeftMenuInfo where id=100152
/
Delete from LeftMenuConfig where infoid=100152
/
call LMConfig_U_ByInfoInsert (2,100147,3)
/
call LMInfo_Insert (100152,512838,'','',2,100147,3,2)
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/resource' where id = 100152
/
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (44002,'<EFBFBD><EFBFBD>Ա<EFBFBD>ֶζ<EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD>','ResourceField:All',2725)
/
insert into SystemRightToGroup(rightid,groupid) values (2725,-23)
/
insert into SystemRightGroups (id,rightgroupmark, rightgroupname, rightgroupremark) values(-23,'ORGANIZATION','<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
/
insert into SystemRightType(id,rightTypeName,rightTypeDesc) VALUES (37,'<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
/
delete from SystemRightDetail where rightid =2726
/
delete from SystemRightsLanguage where id =2726
/
delete from SystemRights where id =2726
/
delete from SystemRightToGroup where rightid =2726
/
delete from SystemRightType where id =37
/
delete from SystemRightGroups where id =-23
/
insert into SystemRights (id,rightdesc,righttype,detachable) values (2726,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','37',0)
/
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2726,8,'roster','roster')
/
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2726,9,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
/
insert into SystemRightsLanguage (id,languageid,rightname,rightdesc) values (2726,7,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
/
insert into SystemRightDetail (id,rightdetailname,rightdetail,rightid) values (44003,'<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD>','Roster:All',2726)
/
insert into SystemRightToGroup(rightid,groupid) values (2726,-23)
/
insert into SystemRightGroups (id,rightgroupmark, rightgroupname, rightgroupremark) values(-23,'ORGANIZATION','<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȩ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
/
insert into SystemRightType(id,rightTypeName,rightTypeDesc) VALUES (37,'<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>','<EFBFBD><EFBFBD>֯<EFBFBD><EFBFBD><EFBFBD><EFBFBD>')
/
Delete from LeftMenuInfo where id=100171
/
Delete from LeftMenuConfig where infoid=100171
/
call LMConfig_U_ByInfoInsert (2,100167,2)
/
call LMInfo_Insert (100171,538767,'','',2,100167,2,2)
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/fieldDef/resource' where id = 100171
/
Delete from LeftMenuInfo where id=100174
/
Delete from LeftMenuConfig where infoid=100174
/
call LMConfig_U_ByInfoInsert (2,100139,3)
/
call LMInfo_Insert (100174,539196,'','',2,100139,3,2)
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='' where id = 100174
/
Delete from LeftMenuInfo where id=100175
/
Delete from LeftMenuConfig where infoid=100175
/
call LMConfig_U_ByInfoInsert (2,100174,-1)
/
call LMInfo_Insert (100175,539197,'','',2,100174,-1,2)
/
update LeftMenuInfo set mobxrouteurl = '',iconClassName = '',fullrouteurl='/spa/organization/static/index.html#/main/organization/resourceBasicInfo' where id = 100175
/
delete from HtmlLabelIndex where id = 539196 and ( trim(indexdesc) is null )
/
insert into HtmlLabelIndex(id,indexdesc) select 539196,'<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539196 and ( trim(indexdesc) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539196 and languageid=7 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539196 as indexid ,'<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539196 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539196 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539196 as indexid ,'Personnel management' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539196 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539196 and languageid=9 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539196 as indexid ,'<EFBFBD>ˆT<EFBFBD><EFBFBD><EFBFBD><EFBFBD>' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539196 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1
/
delete from HtmlLabelIndex where id = 539197 and ( trim(indexdesc) is null )
/
insert into HtmlLabelIndex(id,indexdesc) select 539197,'<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD>Ϣ' from HtmlLabelIndex where not exists (select id from HtmlLabelIndex where id = 539197 and ( trim(indexdesc) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539197 and languageid=7 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539197 as indexid ,'<EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD>Ϣ' as content,7 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539197 and languageid=7 and ( trim(labelname) is not null )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539197 and languageid=8 and ( trim(labelname) is null or length(labelname)!=lengthb(labelname) )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539197 as indexid ,'Personnel information' as content,8 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539197 and languageid=8 and ( trim(labelname) is not null and length(labelname)=lengthb(labelname) )) and rownum = 1
/
delete from HtmlLabelInfo where indexid = 539197 and languageid=9 and ( trim(labelname) is null )
/
insert into HtmlLabelInfo(indexid,labelname,languageid) select * from (select 539197 as indexid ,'<EFBFBD>ˆT<EFBFBD><EFBFBD>Ϣ' as content,9 as languageid from HtmlLabelInfo) t where not exists (select indexid,languageid from HtmlLabelInfo where indexid = 539197 and languageid=9 and ( trim(labelname) is not null )) and rownum = 1
/