Bug 13757: (QA followup) Check DB structure before altering table
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
0fbc8620e2
commit
2811d8555d
2 changed files with 13 additions and 1 deletions
|
@ -0,0 +1,13 @@
|
||||||
|
$DBversion = "16.12.00.XXX";
|
||||||
|
if ( CheckVersion($DBversion) ) {
|
||||||
|
unless ( column_exists( 'borrower_attribute_types', 'opac_editable' ) )
|
||||||
|
{
|
||||||
|
$dbh->do(q{
|
||||||
|
ALTER TABLE borrower_attribute_types
|
||||||
|
ADD COLUMN `opac_editable` tinyint(1) NOT NULL default 0 AFTER `opac_display`
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
print "Upgrade to $DBversion done (Bug 13757: Make patron attributes editable in the opac if set to 'editable in OPAC'\n";
|
||||||
|
SetVersion($DBversion);
|
||||||
|
}
|
|
@ -1 +0,0 @@
|
||||||
ALTER TABLE borrower_attribute_types ADD COLUMN `opac_editable` tinyint(1) NOT NULL default 0 AFTER `opac_display`;
|
|
Loading…
Reference in a new issue