]> git.koha-community.org Git - koha.git/commit
Bug 24658: (bug 22008 follow-up) Correct update DB entry 18.12.00.031
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 17 Nov 2020 14:15:02 +0000 (15:15 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 10 Dec 2020 10:11:23 +0000 (11:11 +0100)
commit35740d271ff781c776d239f1d88416a809dc07ab
tree31ba357822571c9c4832d09fc1664e38403fdc9a
parentf7b4f0bccb4f1dade0956754886a090eaec0e42c
Bug 24658: (bug 22008 follow-up) Correct update DB entry 18.12.00.031

If the original constraint does not exist, the second one is not added.

Test plan:
1. checkout dbrev 18.12.00.030
2. Remove the constraint: ALTER TABLE accountlines DROP FOREIGN KEY accountlines_ibfk_2
3. checkout master
4.
% updatedatabase
=> The constraint accountlines_ibfk_items is not added
5. Repeat 1 to 4
=> The constraint is added correctly

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit fb0a659684a70204c1922675df18efca257bddd9)
installer/data/mysql/updatedatabase.pl