Commit Graph

1903 Commits

Author SHA1 Message Date
Hayley Mapley 55f94a201e Bug 24846: DBRev 18.11.15.001
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-03-27 11:25:34 +13:00
Hayley Mapley 1ec18529f8 Increment version for 18.11.15 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-03-24 09:02:19 +13:00
Hayley Mapley aa15cdfd79 Increment version for 18.11.14 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-02-21 13:36:50 +13:00
Hayley Mapley aa6eaa2ecb Bug 22868: DBRev 18.11.13.001 (fix)
Previous DBRev contained wrong version number in updatedatabase.pl.

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-02-18 14:11:52 +13:00
Hayley Mapley cea8fccd11 Bug 22868: DBRev 18.11.14.001
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-02-18 10:19:46 +13:00
Hayley Mapley fef7bff13d Increment version for 18.11.13 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2020-01-21 12:25:07 +13:00
Hayley Mapley b0fa10596a Increment version for 18.11.12 release
Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>
2019-12-20 11:57:39 +13:00
Lucas Gass f1196b9f52 Increment version for 18.11.11 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-11-22 17:42:29 +00:00
Lucas Gass 264c68b8b0 Increment version for 18.11.10 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-21 18:39:28 +00:00
Jonathan Druart e2d030efe7 Bug 23265: (bug 12063 follow-up) Remove Koha::Holds from updatedatabase
Test plan:
Have a DB that fail the 16.12.00.032 update, then apply this patch and
verify the expiration dates

RM: Please inforce this rule, no use of Koha:: in updatedatabase!

Signed-off-by: Victor Grousset <victor.grousset@biblibre.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 18d8d3b38b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 8458626205)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-21 13:44:38 +00:00
Lucas Gass 105e3c9ce0 Bug 23309: DBRev 18.11.09.002
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-09-17 20:21:28 +00:00
Lucas Gass bb9dd99b27 Bug 22524: DBRev 18.11.09.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-08-31 03:47:42 +00:00
Lucas Gass 848aff4a5a Increment version for 18.11.09 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-08-28 02:22:21 +00:00
Lucas Gass a71bd8c195 Increment version for 18.11.08 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-23 16:56:03 +00:00
Lucas Gass 8a278db2ed Bug 23151: DBRev 18.11.07.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-23 00:06:45 +00:00
Lucas Gass e95ab471b3 RMaint Follow-up: Fix typo in updatedatabase.pl
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-07-12 16:48:54 +00:00
Lucas Gass dc4d92e1de Increment version for 18.11.07 release
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-27 17:57:25 +00:00
Lucas Gass f85b8df1eb Bug 22770: DBRev 18.11.06.002
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-26 16:49:43 +00:00
Lucas Gass 8001aae503 Bug 10215: DBRev 18.11.06.001
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2019-06-12 22:37:43 +00:00
Martin Renvoize 52c8912908
Increment version for 18.11.06 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-31 07:51:09 +01:00
Nick Clemens 41971fd6da
Bug 22899: DBRev 18.11.05.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit b90bbc1259)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-24 14:40:40 +01:00
Martin Renvoize a056ad12d1
Increment version for 18.11.05 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-05-02 14:26:26 +01:00
Nick Clemens 5b8ed9cc0f
Bug 22339: DBRev 18.11.04.004
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ed6228de83)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 16:22:37 +01:00
Nick Clemens 98a5039290
Bug 22044: DBRev 18.11.04.003
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 4177d2e329)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-26 12:55:39 +01:00
Martin Renvoize 117a9fc090
Bug 22642: Corrections to updatedatebase for bug 12395
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 8b3f1cb151)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-16 14:11:42 +01:00
Nick Clemens 969ad3ece8
Bug 19670: DBRev 18.11.05.002
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f7869ad48b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-16 14:06:08 +01:00
Jonathan Druart f7a6adc183
Bug 22472: Make column_exists early return if the table does not exist
On the way we move TableExists to C4::Installer, where it belongs to.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 7208ac6196)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-15 18:51:22 +01:00
Nick Clemens 7619c90e06
Bug 22607: DBRev 18.11.04.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ced69febf3)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-04-15 11:36:11 +01:00
Martin Renvoize 91f1ff6a01
Increment version for 18.11.04 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-03-25 16:36:43 +00:00
Nick Clemens 5115ee767d
Bug 18736: DBRev 18.11.03.004
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit bc36d8e06b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-03-25 14:33:54 +00:00
Nick Clemens fe46e7d393
Bug 21846: DBRev 18.11.03.003
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 3d462af21f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-03-19 10:03:21 +00:00
Jonathan Druart 6729f22ff0
Bug 22275: (bug 15836 follow-up) Fix class_sources.class_split_rule FK creation
18.06.00.060 will fail if custom Classification sources were created.

In that case we should use the 'generic' split rule.

Test plan:
% git checkout -b bug_22395_pre 3a0cba67f1
Reset the DB
Go to  Home › Administration › Classification sources
Create a custom "Classification filing rules"
Create a custom "Classification sources" using this filing rules
% git checkout master
% perl installer/data/mysql/updatedatabase.pl
=> Without this patch you will get:
DBD::mysql::db do failed: Cannot add or update a child row: a foreign key constraint fails (`koha_kohadev`.`#sql-33a_67`, CONSTRAINT `class_source_ibfk_2` FOREIGN KEY (`class_split_rule`) REFERENCES `class_split
_rules` (`class_split_rule`)) [for Statement "
            ALTER TABLE class_sources
            ADD CONSTRAINT class_source_ibfk_2 FOREIGN KEY (class_split_rule)
            REFERENCES class_split_rules (class_split_rule)
        "] at installer/data/mysql/updatedatabase.pl line 17104.

=> With this patch applied the FK will be created successfully
class_sources.class_split_rule will be set to "generic" for these custom values.

Signed-off-by: Oliver Behnke <oliver.behnke@aei.mpg.de>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 29bc2b5832)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-03-12 08:41:49 +00:00
Nick Clemens ced78bb7c6
Bug 19575: DBRev 18.11.03.002
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ff20d029e3)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-03-05 14:56:54 +00:00
Martin Renvoize 37374dc82b
Bug 13515: (RMaint follow-up) Correction to Database Version
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-02-27 08:54:33 +00:00
Nick Clemens f5d3814854
Bug 16276: (RM follow-up) Fix update statement output
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 55332977bf)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-02-26 09:36:33 +00:00
Nick Clemens eae99688ac
Bug 13515: DBRev 18.11.03.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 2c6d39452a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-02-25 12:26:52 +00:00
Martin Renvoize cdaaf42805
Increment version for 18.11.03 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-02-22 12:43:17 +00:00
Aleisha Amohia 99cd91ad2d
Bug 20000: Use Modern::Perl in installer scripts
To test:

Check that we are using Modern::Perl when strict *and* warnings were used before,
and commented lines and FIXMEs have been removed from the rest, out of
files listed below.

data/mysql/backfill_statistics.pl
data/mysql/labels_upgrade.pl
data/mysql/patroncards_upgrade.pl
data/mysql/update22to30.pl
data/mysql/updatedatabase.pl
externalmodules.pl
html-template-to-template-toolkit.pl
install.pl

Sponsored-by: Catalyst IT
Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 20a38ee50e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-02-11 13:51:12 +00:00
Nick Clemens 574c89ef49
Bug 22132: DBRev 18.11.02.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 914f448fe1)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-02-01 15:46:36 +00:00
Martin Renvoize b090a31b2f
Increment version for 18.11.02 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-01-22 15:50:36 +00:00
Nick Clemens 5e1efa83f7
Bug 21915: DBRev 18.11.01.002
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 10f78fcb2e)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-01-10 16:20:30 +00:00
Nick Clemens 03e6ecd31c
Bug 22030: DBRev 18.11.01.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 70abd7698f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-01-10 13:44:58 +00:00
Martin Renvoize 1574d9f2c7
Increment version for 18.11.01 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-12-20 11:57:05 +00:00
Nick Clemens cc6b9593c4
Bug 22024: DBRev 18.11.00.003
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit f56dd2e829)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-12-20 09:57:34 +00:00
Nick Clemens 852be591db
Bug 21065: DBRev 18.11.00.002
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 5ea668056a)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-12-20 09:34:47 +00:00
Jonathan Druart 1fdc679955
Bug 21931: Do not reset the ES mapping on 3.23.00.050
This update DB entry uses DBIx schema which does not make it crashes if
the table structure is changed.
Which happens on 18.06.00.054, that added search_field.weight

The entry 3.23.00.050 fails with
  Unknown column 'me.weight' in 'field list'

This patch removes the reset of the mapping and display a warning to
tell the administrator the mapping must be reset/inserted

Test plan:
Use a 3.22 dump and upgrade it

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit e29f0bce40)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-12-17 12:05:17 +00:00
Nick Clemens a9f618f96d
Bug 21961: DBRev 18.11.00.001
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a02b322fe7)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2018-12-12 10:59:10 +00:00
Nick Clemens 75a7eef8fb Increment version for 18.11.00 release
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-26 20:39:26 -05:00
Nick Clemens 746aa64a29 Bug 21869: Fix incorrect value setting in DB update
To test:
1 - Set some value for MarkLostAsReturned syspref
2 - Set your db version to 17.12.00.035 (or load an older db)
3 - updatedatabase
4 - Note your values are lost and db is incorrectly set
5 - Apply patch
6 - Reset values
7 - Reset DB version
8 - Run updatedatabase
9 - Original values are retained

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-26 14:30:17 +00:00
Nick Clemens 38481c253d Bug 21730: DBRev 18.06.00.062
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-26 12:49:25 +00:00