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/SQLServer/sql202210100103.sql

141 lines
6.9 KiB
MySQL

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