[Koha-bugs] [Bug 9191] updatedatabase.pl must have ability to run updates only up to a particular revision
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 4 16:19:33 CET 2012
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9191
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #13877|0 |1
is obsolete| |
--- Comment #5 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 13878
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13878&action=edit
Bug 9191: updatedatabase.pl should only run updates up to the current version
Check whether a given update should be run when passed the proposed
version number. The update will always be run if the proposed version
is greater than the current database version and less than or equal to
the version returned by C4::Context->final_linear_version (initially set
to be equal to the version in kohaversion.pl). The update is also run if
the version contains XXX, though this behavior will be changed following
the adoption of non-linear updates as implemented in bug 7167.
To test:
1) Make sure that the first example database update added by this patch
in installer/data/mysql/updatedatabase.pl has a version number one
greater than the version of Koha you have installed.
2) Set the Version syspref back one version behind your current version.
3) Navigate to the main page of the staff client, and log in to the
installer.
4) Confirm that the update page claims to have rerun the previous update
and has displayed the log message:
"Upgrade to 3.11.00.XXX done (Bug 9191: You should see this)"
but not the log message:
"Upgrade to [version number] done (Bug 9191: You shouldn't see this)"
Note: the sample database revisions will be removed by the RM before
this patch is pushed to master.
Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
works great
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list