At each upgrade, REDCap upgrade.php script adds or replaces a row in redcap_history_version. the fab deploy and upgrade tasks do not do that, but should. The line from REDCap we need to imitate is
REPLACE INTO redcap_history_version (`date`, redcap_version) values (CURDATE(), '$redcap_version');
With variables substituted, that line loks like this:
REPLACE INTO redcap_history_version (`date`, redcap_version) values (CURDATE(), '9.3.5');
Look for code to steal at
|
def set_redcap_config(field_name="", value=""): |