Reviewed-on: #97
This commit is contained in:
commit
cc65890fea
24
sas/sasjs/db/migrations/20230115_v6.8.2_release.sas
Normal file
24
sas/sasjs/db/migrations/20230115_v6.8.2_release.sas
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/**
|
||||||
|
@file
|
||||||
|
@brief migration script to move from v6.5 to 6.8.2 of data controller
|
||||||
|
|
||||||
|
**/
|
||||||
|
|
||||||
|
%let dclib=YOURDCLIB;
|
||||||
|
|
||||||
|
libname &dclib "/your/dc/path";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Change 1
|
||||||
|
* New MPE_SUBMIT table
|
||||||
|
*/
|
||||||
|
proc sql;
|
||||||
|
insert into &dclib..mpe_config set
|
||||||
|
tx_from=0
|
||||||
|
,tx_to='31DEC9999:23:59:59'dt
|
||||||
|
,var_scope="DC"
|
||||||
|
,var_name="DC_REQUEST_LOGS"
|
||||||
|
,var_value="YES"
|
||||||
|
,var_active=1
|
||||||
|
,var_desc='Setting to NO will prevent each request being logged to the'
|
||||||
|
!!' MPE_REQUESTS table Default=YES.';
|
@ -78,6 +78,15 @@ insert into &lib..mpe_config set
|
|||||||
!!' into the browser for editing in the EDIT screen. A higher number'
|
!!' into the browser for editing in the EDIT screen. A higher number'
|
||||||
!!' will require a decent browser (ie, not IE) and more memory on the'
|
!!' will require a decent browser (ie, not IE) and more memory on the'
|
||||||
!!' client side.';
|
!!' client side.';
|
||||||
|
insert into &lib..mpe_config set
|
||||||
|
tx_from=0
|
||||||
|
,tx_to='31DEC9999:23:59:59'dt
|
||||||
|
,var_scope="DC"
|
||||||
|
,var_name="DC_REQUEST_LOGS"
|
||||||
|
,var_value="YES"
|
||||||
|
,var_active=1
|
||||||
|
,var_desc='Setting to NO will prevent each request being logged to the'
|
||||||
|
!!' MPE_REQUESTS table Default=YES.';
|
||||||
insert into &lib..mpe_config set
|
insert into &lib..mpe_config set
|
||||||
tx_from=0
|
tx_from=0
|
||||||
,tx_to='31DEC9999:23:59:59'dt
|
,tx_to='31DEC9999:23:59:59'dt
|
||||||
|
@ -29,9 +29,12 @@
|
|||||||
mpelocapprovals /* location for landing and staging files */
|
mpelocapprovals /* location for landing and staging files */
|
||||||
mpelib /* location of configuration tables for DC */
|
mpelib /* location of configuration tables for DC */
|
||||||
dc_repo_users /* location of user / group metadata */
|
dc_repo_users /* location of user / group metadata */
|
||||||
dc_licence_key /* extracted in dc_getsettings */
|
/* extracted in dc_getsettings */
|
||||||
dc_activation_key /* extracted in dc_getsettings */
|
dc_activation_key
|
||||||
dc_locale /* extracted in dc_getsettings */
|
dc_licence_key
|
||||||
|
dc_locale
|
||||||
|
dc_request_logs
|
||||||
|
dc_restrict_viewer
|
||||||
dc_dttmtfmt /* can be overridden in dc_getsettings */
|
dc_dttmtfmt /* can be overridden in dc_getsettings */
|
||||||
_debug /* automatic variable when provided in URL */
|
_debug /* automatic variable when provided in URL */
|
||||||
sasjs_mdebug /* used to show extra info when _debug is enabled */
|
sasjs_mdebug /* used to show extra info when _debug is enabled */
|
||||||
|
@ -35,6 +35,7 @@ run;
|
|||||||
run;
|
run;
|
||||||
%end;
|
%end;
|
||||||
%if %sysfunc(exist(&dc_libref..mpe_requests)) and %mf_getplatform() ne SASVIYA
|
%if %sysfunc(exist(&dc_libref..mpe_requests)) and %mf_getplatform() ne SASVIYA
|
||||||
|
and &DC_REQUEST_LOGS ne NO
|
||||||
%then %do;
|
%then %do;
|
||||||
data ;
|
data ;
|
||||||
if 0 then set &dc_libref..mpe_requests;
|
if 0 then set &dc_libref..mpe_requests;
|
||||||
@ -42,6 +43,8 @@ run;
|
|||||||
request_user="%mf_getuser()";
|
request_user="%mf_getuser()";
|
||||||
request_service="%scan(&_program,-2,/)/%scan(&_program,-1,/)";
|
request_service="%scan(&_program,-2,/)/%scan(&_program,-1,/)";
|
||||||
request_params='';
|
request_params='';
|
||||||
|
/* sleep random amount to avoid parallel update attempts */
|
||||||
|
call sleep(ranuni(0)*0.1,1);
|
||||||
output;stop;
|
output;stop;
|
||||||
proc append base=&dc_libref..mpe_requests data=&syslast force nowarn;
|
proc append base=&dc_libref..mpe_requests data=&syslast force nowarn;
|
||||||
run;
|
run;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user