Koha/t/db_dependent
Jared Camins-Esakov a6c7ba8519 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@biblibre.com>
works great

Signed-off-by: Elliott Davis <elliott@test.bywatersolutions.com>
Works as expected.  Test plan is great. Code looks to be adherent to standards.
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2012-12-11 08:19:00 -05:00
..
data/zebraexport bug 8649: create a temp directory for Zebra for C4::Search tests 2012-09-13 11:55:48 +02:00
Labels
LDAP
lib Bug 8519 - Make koha-index-daemon run on startup 2012-12-07 09:19:18 -05:00
needs_user_input
Record
Reports
00-strict.t
Accounts.t
Acquisition.t Bug 5335 follow-up fix test 2012-09-28 11:19:56 +02:00
Amazon.t
Auth.t
Auth_with_cas.t
AuthoritiesMarc.t Bug 8890 - move two more db dependent tests 2012-10-24 17:52:42 +02:00
BackgroundJob.t
Barcodes.t
Biblio.t
Budgets.t
check_sysprefs.t
Circulation.t
Context.t Bug 9191: updatedatabase.pl should only run updates up to the current version 2012-12-11 08:19:00 -05:00
Csv.t
database_dependent.pl
External_BakerTaylor.t
Heading_MARC21.t
HoldsQueue.t bug_5911: Transport Cost Matrix 2012-09-12 14:49:25 +02:00
Holidays.t Holidays Test Plan - DB Dependent 2012-10-01 16:44:02 +02:00
Items.t Bug 5327 : Fixing a typo in the test that was causing a false fail 2012-09-07 14:31:59 +02:00
Koha.t
Koha_Authority.t Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
Koha_template_plugin_KohaDates.t
Linker_FirstMatch.t
Log.t
Members.t
Ratings.t
Record.t
RecordProcessor_EmbedSeeFromHeadings.t Bug 7417: Include see from references in bibliographic searches 2012-09-13 14:19:28 +02:00
Reports.t
Reports_Guided.t
Reserves.t Bug 8728 : Adjust Reserves.t test for resdate and expdate and test setup/teardown 2012-10-02 18:09:27 +02:00
rollingloans.t
Search.t Bug 8211: Add exploded search options 2012-09-18 15:20:48 +02:00
Serials.t
Serials_2.t
Service.t
SIP_ILS.t
SQLHelper.t
SuggestionEngine_ExplodedTerms.t Bug 8846 conflict resolution: correct path 2012-11-01 08:41:30 -04:00
Suggestions.t
sysprefs.t
Tags.t Bug 7642 - fix the lost display of tag sizes 2012-10-01 17:38:27 +02:00
UploadedFile.t
VirtualShelves.t
VirtualShelves_Page.t
XISBN.t
zebra_config.pl bug 8649: create a temp directory for Zebra for C4::Search tests 2012-09-13 11:55:48 +02:00