Bug 26995: (QA follow-up) Fix logic in database update
The logic was reversed.. if the column exists we want to delete it ;) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
1cc8a77c28
commit
1c3e7f78b5
|
|
@ -1,18 +1,18 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
if ( !column_exists( 'borrowers', 'relationship' ) ) {
|
||||
if ( column_exists( 'borrowers', 'relationship' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE borrowers DROP COLUMN relationship
|
||||
});
|
||||
}
|
||||
|
||||
if ( !column_exists( 'deletedborrowers', 'relationship' ) ) {
|
||||
if ( column_exists( 'deletedborrowers', 'relationship' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE deletedborrowers DROP COLUMN relationship
|
||||
});
|
||||
}
|
||||
|
||||
if ( !column_exists( 'borrower_modifications', 'relationship' ) ) {
|
||||
if ( column_exists( 'borrower_modifications', 'relationship' ) ) {
|
||||
$dbh->do(q{
|
||||
ALTER TABLE borrower_modifications DROP COLUMN relationship
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue