Commit graph

2016 commits

Author SHA1 Message Date
8c6cb79f66
Bug 24206: DBRev 19.12.00.008
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-10 16:12:38 +00:00
d3bdb77d9a
Bug 23442: DBRev 19.12.00.007
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-10 08:43:48 +00:00
9f9cc7afbe
Bug 24263: DBRev 19.12.00.006
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-08 14:23:33 +00:00
2db8898d11
Bug 24329: DBRev 19.12.00.005
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-08 11:10:14 +00:00
ef3525cb9e
Bug 24329: Correction to updatedatabase
Ensure timestamp is not overwriteen during upgrade when applying updates
for bug 3820

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-08 11:04:46 +00:00
3bd2c3cf3a
Bug 24080: DBRev 19.12.00.004
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-03 16:46:23 +00:00
642f738692
Bug 22284: DBRev 19.12.00.003
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-03 13:05:57 +00:00
9a5ce70d3b
Bug 23233: DBRev 19.12.00.002
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-12-16 11:09:30 +00:00
cef3745aae
Bug 17831: DBRev 19.12.00.001
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-12-09 14:57:16 +00:00
1548f0300f
Koha 19.12 - Dobbie is a free elf...
“Dobby has got a sock. Master threw it, and
    Dobby caught it, and Dobby — Dobby is free."

Koha, the worlds first completely open library system. 🧦

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-12-02 17:13:15 +00:00
24504b320e
Increment version for 19.11.00 release
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-27 16:34:49 +00:00
5a2ef6fe57
Align DB updates
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-27 16:34:49 +00:00
e493cca4a0
Bug 24130: (RM follow-up) Fix old invalid data
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-27 15:54:23 +00:00
1a8de78c20
Bug 23049: (RM follow-up) remove 'IGNORE' from ALTER TABLE
We have updated the update to use our column_exists method, but had
forgotten to remove the corresponding IGNORE keyword from the SQL
itself.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-08 08:07:36 +00:00
fc04f6535b
Bug 23293: DBRev 19.06.00.050
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-07 13:20:40 +00:00
ff3d7b9f8e
Bug 23813: (bug 18925 follow-up) Remove invalid circ rules to avoid FK constraints to fail
There is not FK constraints on the itemtype, categorycode and branchcode
columns of the issuingrules table, because of the '*' value we use for
default.
We created the new table circulation_rules with those constraints, and
when we moved the rules for maxissueqty, the INSERT failed.

To avoid the FK constraints to fail we are going to delete the invalid
rows before.

It could lead to data lost, but this situation certainly comes from a
bad data manipulation at some point of the history of the installation.

Test plan:
git reset --hard 1e4f442442 # before 18.12.00.020
reset_all

insert into branches(branchcode, branchname) values('rmme', 'rmme');
insert into categories (categorycode, description) values ('rmme', 'rmme');
insert into itemtypes (itemtype, description) values('rmme', 'rmme');

Go to http://pro.kohadev.org/cgi-bin/koha/admin/smart-rules.pl
Create a new rule for the patron category
Create a new rule for the item type
Copy all the default rule to the new library
Create other rules for "Default checkout, hold policy by patron category" and "Default holds policy by item type" using this patron's category and itemtype.
Same for patrons' categories and itemtypes you will not delete.

delete from branches where branchcode="rmme";
delete from categories where categorycode="rmme";
delete from itemtypes where itemtype="rmme";

git checkout master
and execute the DB process.

=> With this patch applied you will not get the error and the rules will
be moved correctly.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-07 09:23:44 +00:00
aab956af68
Bug 13958: DBRev 19.06.00.049
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-07 09:15:09 +00:00
ebf7c6eacb
Bug 22581: DBRev 19.06.00.048
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-03 08:14:26 +00:00
f7325a6ed7
Bug 23805: (RM follow-up) Remove CHECK constraints
MariaDB and MySQL support different syntaxes for CHECK constraints at
different versions. To remove complexities in the updatedatabase script
I have opted to remove all CHECK constraints entirely.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-11-01 13:11:37 +00:00
e0f44275b8
Bug 23805: (RM follow-up) updatedatabase.pl mariadb support
MySQL and MariaDB have different syntax when it comes to dropping a
CHECK constraint.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-31 16:29:17 +00:00
eec93f0628
Bug 14697: DBRev 19.06.00.047
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-31 12:18:56 +00:00
c76c509d83
Bug 15260: DBRev 19.06.00.046
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-31 11:58:02 +00:00
ae92e44564
Bug 23866: DBRev 19.06.00.045
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-31 11:37:33 +00:00
a53641328c
Bug 23805: (follow-up) Database update corrections
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-26 07:49:23 +01:00
f4254cca37
Bug 23805: DBRev 19.06.00.044
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-24 17:35:21 +01:00
dbd72dcfa1
Bug 23049: DBRev 19.06.00.043
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-24 17:35:19 +01:00
768b067737
Bug 22445: DBRev 19.06.00.042
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-22 15:05:56 +01:00
6d1b3cf212
Bug 23867: Resolve "truncated incorrect double" for empty string
Updatedatabase, rev. 18.12.00.051
Solved by testing the value of the pref first.
Tested by copying the change in a new atomic update with XXX.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-22 14:13:30 +01:00
2c10ac831b
Bug 23791: DBRev 19.06.00.041
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-21 09:57:06 +01:00
ea1f698669
Bug 23809: Correction to selectall_arrayref call.
This patch adds the missing `{ Slice => {} }` attribute to the database
call introduced in bug 23265 to fix the use of Koha::Objects introduced
originally in bug 12063.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-14 13:30:15 +01:00
9d9bb45865
Bug 17140: DBRev 19.06.00.040
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-11 10:57:50 +01:00
a013f2bbdd
Bug 17179: DBRev 19.06.00.039
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-09 14:38:04 +01:00
6d50787b57
Bug 23697: DBRev 19.06.00.038
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-08 14:53:00 +01:00
6d9bc489a2
Bug 21701: DBRev 19.06.00.037
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-08 14:45:34 +01:00
172a4836bf
Bug 20334: DBRev 19.06.00.036
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-08 14:14:14 +01:00
22aaf8f1f9
Bug 18421: DBRev 19.06.00.035
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-07 14:09:13 +01:00
a9d5147dfd
Bug 23007: DBRev 19.06.00.034
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-07 12:45:23 +01:00
ec5a5d6e72
Bug 23686: DBRev 19.06.00.032
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-03 10:49:52 +01:00
David Gustafsson
3227e5ae44
Bug 20589: DBRev 19.06.00.032
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-02 13:49:13 +01:00
deb4c4b765
Bug 23566: DBRev 19.06.00.031
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-01 14:41:28 +01:00
7a68532048
Bug 19618: DBRev 19.06.00.030
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-01 08:14:59 +01:00
dc6ebfadb8
Bug 23321: DBRev 19.06.00.029
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-23 11:49:25 +01:00
ce223ed30e
Bug 6759: DBRev 19.06.00.028
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-13 08:09:49 +01:00
13f83dc6e3
Bug 15497: DBRev 19.06.00.027
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-12 16:32:37 +01:00
16399fd236
Bug 20691: DBRev 19.06.00.026
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-12 08:44:32 +01:00
a7d5a4cc82
Bug 22996: DBRev 19.06.00.25
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-10 09:39:42 +01:00
38322b5a43
Bug 23539: DBRev 19.06.00.024
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-06 13:21:07 +01:00
c1664d3bd6
Bug 22258: DBRev 19.06.023
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-06 13:17:45 +01:00
18d8d3b38b
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>
2019-09-06 12:50:34 +01:00
205ab8f50b
Bug 14570: DBRev 19.06.00.022
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-08-20 16:15:45 +01:00