Martin Renvoize
f45b3b3f3a
In bug 19919 we removed all references to setting, unsettling and referring to the paidfor field but we neglected to actually drop the field from the database (I think I intended to do this, but was asking for feedback on the approach before adding the actual db change.. then completely forgot when it went through SO/QA quickly). In bug 23463 we inadvertently re-introduced some of the setting code during a rebase. In bug 18501 we then moved that inadvertently re-introduced setter into Koha::Item->store. We should kill it off once and for all! Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
10 lines
334 B
Perl
10 lines
334 B
Perl
$DBversion = 'XXX'; # will be replaced by the RM
|
|
if( CheckVersion( $DBversion ) ) {
|
|
|
|
if( !column_exists( 'items', 'paidfor' ) ) {
|
|
$dbh->do(q|ALTER TABLE items DROP COLUMN paidfor|);
|
|
$dbh->do(q|ALTER TABLE deleteditems DROP COLUMN paidfor|);
|
|
}
|
|
|
|
NewVersion( $DBversion, 26268, "Remove items.paidfor field");
|
|
}
|