[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 Oct 28 15:48:55 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13068

M. de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #32784|0                           |1
        is obsolete|                            |

--- Comment #27 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
Created attachment 32839
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=32839&action=edit
Bug 13068: Counterpatch using atomicupdate directory

This patch makes a distinction between atomicupdates belonging to an
official db revision and development updates.
It also keeps track of the dev updates since the last official db rev.
(This is done via a local pref; so easily accessible if needed.)

The db revs can be txt files, perl scripts or sql files.
Sql files are run via the installer.

A new db revision is now only a matter of dropping a file in atomicupdates
for the developer. The RM only adds one line to updatedatabase like:
    ExecDBRev( $aupd, '13068', 'Refined dbrev', '13068.pl', '3.17.00.028');
This line should follow the last dbrev and preceed the call to
RunRemainingAtomicUpdates.

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] Run updatestructure and check if all db revs and dev updates are run.
    Run updatestructure again. Nothing should be run now.
    Clear/delete the _LocalAtomicUpdates pref.
    Run updatestructure again. Only dev updates should be run.
    Reset the database version. You could edit Version in local preferences.
    Run updatestructure and check if all db revs and dev updates are run.
    Edit _LocalAtomicUpdates and remove one filename.
    Run updatestructure again. Only one dev update should be run.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list