- Set the executable bit on the atomicupdate so it passes the QA file_permissions check. - Drop the unused 'say_info' import; only 'say_warning' and 'say_success' are now needed. - Capture the row count from the DELETE so we report 'say_warning' on a re-run (when the syspref is already gone) instead of falsely claiming to have deleted it again. - Add an inline comment explaining the conservative '(is_hidden OR VALUES(is_hidden))' conflict-resolution rule used when a table-settings row already exists alongside the old syspref value. Test plan: 1. Verify the atomicupdate file has the executable bit set. 2. On a database where the syspref is still present, run the atomicupdate. Confirm output reads "Deleted 'SpineLabelShowPrintOnBibDetails' syspref". 3. Run the atomicupdate a second time. Confirm output now reads "'SpineLabelShowPrintOnBibDetails' syspref already removed". 4. Confirm the columns_settings rows are unchanged on re-run. Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> |
||
|---|---|---|
| .. | ||
| README | ||
| bug_34353-remove_spinelabelshowprintonbibdetails_syspref.pl | ||
| skeleton.pl | ||
README
Please put your database revision files in this folder. The Release Manager will remove them from here when pushing your patches. To use the skeleton.pl for your update: % cp installer/data/mysql/atomicupdate/skeleton.pl installer/data/mysql/atomicupdate/bug_XXXXX.pl and put your modifications in where noted.