Bug 17813: (QA followup) Properly check DB structure before altering it
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 12 Jan 2017 15:09:42 +0000 (12:09 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 20 Jan 2017 13:59:42 +0000 (13:59 +0000)
commit0f3ced357de22c3b46060a305d4dd80aacc72de4
tree63808a31a2ace3bf66736d1c5525fc0fabb1fae4
parent48d7667af9637c2369154f16bb540a77c14a5ba2
Bug 17813: (QA followup) Properly check DB structure before altering it

This patch makes the atomic update use the new functions introduced by
bug 17234 for checking the structure before attempting to call ALTER
TABLE.

It checks for the column existence, and also if it is a primary key.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
installer/data/mysql/atomicupdate/bug_17813_borrower_attributes_pk.perl [new file with mode: 0644]
installer/data/mysql/atomicupdate/bug_17813_borrower_attributes_pk.sql [deleted file]