OpenMRS recently added a non-null uuid column to every table. All of our dbunit xml files needed to be updated to insert values for this attribute. I wrote the following shell script to loop over all xml files under the current folder and add a uuid attribute to all rows that didn’t have an attribute already. There is a bit of logic in there to ignore certain tables because those tables didn’t actually get any uuids.
- 20 May 2009 -