[Koha-bugs] [Bug 13068] New feature for DB update and sandbox
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 2 18:40:48 CET 2014
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13068
Paul Poulain <paul.poulain at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #33859|0 |1
is obsolete| |
--- Comment #52 from Paul Poulain <paul.poulain at biblibre.com> ---
Created attachment 34072
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=34072&action=edit
Bug 13068: Counterpatch follow-up for controlling workflow
The workflow for dev updates can be altered with devupdatecontrol:
[1] devupdatecontrol= PROD for production machines: Do not execute
RunRemainingDevUpdates, so only official db revs. This is the default.
[2] devupdatecontrol= RESET: Reinstall dev updates after an official db rev.
[3] devupdatecontrol= ALWAYS: Run the dev updates at each upgrade.
[4] devupdatecontrol=TRACK: Only install new dev updates. It does not reset
the local pref listing all recently applied dev updates. ONLY use this
if you know what you are doing!
Note: devupdatecontrol is a configuration variable from koha-conf.xml.
If it does not exist or is empty, we fall back to PROD (safest).
If it differs from PROD, ALWAYS or TRACK, it falls back to RESET.
Note2: Initially, devupdatecontrol was a preference. It has been moved
to koha-conf.xml as requested by several developers (Nov 24).
Test plan:
[1] Add a few lines calling ExecDBRev to updatedatabase with corresponding
files in atomicupdate like (insert the correct version!!):
ExecDBRev( $aupd, '13068', 'My test', '13068.pl', '3.17.00.028');
Do not forget to update kohaversion.pl accordingly.
Add some other files in atomicupdate as dev updates.
[2] Repeat for the various modes of devupdatecontrol (see above):
Reset the database version. You could edit Version in local preferences.
Optionally clear/delete the _LocalAtomicUpdates pref.
Run updatestructure and check which db revs and dev updates are run or
skipped. Run it again and check which dev updates are run or skipped.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Paul Poulain <paul.poulain at biblibre.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list