Files
e-Book/6.Metabase與BI實戰入門:探索NBA數據背後的新視野/reference/正航包/Sync2PROD.txt
T

23 lines
894 B
Plaintext

先在 測試區 設定好 Menu & Code
在同步到正是區
--刪除舊的 menu
delete from sys_menutable where moduleid='bis' and substring(menuid,1,5) = 'bisq2';
delete from zen_jsoncode where substring(functiontag,1,5)='bisq2';
-- Copy From TEST
use zenBusiness;
insert into sys_menutable
select * from eis_demo.dbo.sys_menutable X where moduleid='bis' and substring(menuid,1,4) = 'bisr'
and not exists (select * from sys_menutable where sys_menutable.menuid = X.menuid);
insert into sys_rolemenusecurity
select * from eis_demo.dbo.sys_rolemenusecurity X where substring(menuid,1,4) = 'bisr'
and not exists (select * from sys_rolemenusecurity where sys_rolemenusecurity.menuid = X.menuid);
use zenWizard
insert into zen_jsoncode
select * from eis_demo.dbo.zen_jsoncode X where substring(functiontag,1,4)='bisr'
and not exists (select * from zen_jsoncode where zen_jsoncode.functiontag = X.functiontag);