Bug 22044: Set default and add NoRenewalBeforePrecision preference for new/affected...
authorNick Clemens <nick@bywatersolutions.com>
Fri, 21 Dec 2018 19:19:05 +0000 (19:19 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 26 Apr 2019 11:53:09 +0000 (12:53 +0100)
commit6cc9e6086a2937954b05078d78d6034e2223daa5
treed61578df925c44e6d8ed55a511ae195dc3ae2158
parent2bf66d987a9511bd5da108cf27a9cfe2f47e3634
Bug 22044: Set default and add NoRenewalBeforePrecision preference for new/affected installs

I am not sure the correct answer - for upgraded installs the pref was
set to date, which changed behaviour

For new installs the pref was unset, behaved as if 'exact_time' so we
shouldn't change behaviour?

If the perceived default is date then the code should be changed, or
this shouldn't be a pref at all?

To test:
1 - Have a new system missing this pref
2 - Note when searchign the pref in staff client if appears as 'date'
3 - Check the db to confirm value is 'NULL'
4 - Apply patch and run update
5 - Pref is now set to 'exact_time'

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 4779cf845077ffd7f564b63b22f72ba99aa812ff)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
installer/data/mysql/atomicupdate/bug_22044_set_default_value_for_NoRenewalBeforePrecision.perl [new file with mode: 0644]
installer/data/mysql/sysprefs.sql