Files
dc/sas/sasjs/db/migrations/20210802_v3.13_release.sas
T
dc 0662f6230b
Build / Build-and-ng-test (pull_request) Successful in 6m25s
Lighthouse Checks / lighthouse (pull_request) Successful in 20m42s
Build / Build-and-test-development (pull_request) Successful in 31m10s
chore(lint): normalise line endings and make lineEndings an error
Rung 6 of the #376 ratchet: `"lineEndings": "lf"` is enabled and promoted to
"error". Its 37 findings are cleared and nothing but line endings changed.

- 34 files ended without a newline; each now ends with exactly one LF.
- 3 files were stored with CRLF (services/public/getgroups.sas and the two
  sas9 lineage services, getmetacols and getmetatables), against the repo's
  own `* text=auto eol=lf` in .gitattributes. They are converted to LF.

Checked mechanically that this is whitespace only: for every changed file,
HEAD's content and the new content are identical once CRLF is folded to LF
and the trailing newline is stripped.

VERIFICATION

- `npm run lint:sas`: 0 warnings, 0 errors, exit 0.
- `sasjs compile`: succeeds.
- On sas.4gl.io, against a scratch appLoc seeded with makedata:
  "Tests that pass: 64/64 (100%)".
2026-11-01 09:28:58 +00:00

32 lines
719 B
SAS

/**
@file
@brief migration script to move from v3.12 to v3.13 of data controller
<h4> SAS Macros </h4>
@li mm_assigndirectlib.sas
**/
filename mc url "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;
%let dclib=YOURDCLIB;
%let lib=&dclib;
%mm_assigndirectlib(&dclib)
proc sql;
update &dclib..MPE_VALIDATIONS set tx_to=%sysfunc(datetime())
where base_lib="&dclib"
and base_ds="MPE_TABLES"
and base_col="DSN";
insert into &dclib..MPE_VALIDATIONS set tx_from=%sysfunc(datetime())
,tx_to='31DEC5999:23:59:59'dt
,base_lib="&dclib"
,base_ds="MPE_TABLES"
,base_col="DSN";
,rule_value="services/validations/mpe_tables.dsn"
,rule_active=1
,rule_type='SOFTSELECT_HOOK';