...
Generally, with PatchData it will be important to update the database prior to running the patch (if any of the changes involve new or changed fields in the data model). In addition, there may be a corresponding patch SQL file in admin/src/main/resources, such as patch20170110.sql.
Prior to running To run a patch manually:
- Run "updatedb" accordign according to documentation in Create Database
- After that, manually run the sql statements in the patch<$date>.sql file.
To run a patch automatically, find the corresponding patch######.csh file in the config/prod/src/main/resources/bin directory:
- e.g. patch20170110.csh
- Copy the script to the top level "bin" directory (parallel to config/ and data/ directories)
- Run the script with a full path name: /home/ihtsdo/refset/bin/patch20170110.csh
- Multiple patch scripts can be run one after another to "catch up" if needed
After done:
- Update the IHTSDO Refset Management & Translation Tool page to indicate the new patch level.
Details
This tool is used to fix a data condition or patch the database for a new release.
...