nhsx / standards-registry

The service powering the NHS standards directory
https://data.standards.nhs.uk
MIT License
4 stars 5 forks source link

[STAN-1196] migration: set strings to booleans #351

Closed roc closed 1 year ago

roc commented 1 year ago

A quick migrations update which also enables the passing of arbitrary api keys, rather than locally configured ones:

CKAN_KEY={myApiKey} && node write-json-to-ckan.js --from \
'https://2gv8f9zmci.execute-api.eu-west-2.amazonaws.com/dev/get?key=$CKAN_KEY&env=https://manage.standards.nhs.uk/api/action' \
--write-location prod --key=$CKAN_KEY

Note: this has now been run on all envs and should have set "false" and "true" strings to their corresponding booleans