Bug 33379: Remove virtualshelfcontents.flags
This field is unused. A historic leftover from 2000-2010. Test plan: Run dbrev. Run prove t/db_dependent/Koha/Virtualshel* Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
d0fddc0194
commit
36b6eeceb8
2 changed files with 18 additions and 1 deletions
18
installer/data/mysql/atomicupdate/bug33379.pl
Executable file
18
installer/data/mysql/atomicupdate/bug33379.pl
Executable file
|
@ -0,0 +1,18 @@
|
|||
use Modern::Perl;
|
||||
|
||||
return {
|
||||
bug_number => 33379,
|
||||
description => "Remove unused column virtualshelfcontents.flags",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
if ( column_exists( 'virtualshelfcontents', 'flags' ) ) {
|
||||
$dbh->do(
|
||||
q{
|
||||
ALTER TABLE virtualshelfcontents DROP COLUMN flags;
|
||||
}
|
||||
);
|
||||
say $out "Removed column 'virtualshelfcontents.flags'";
|
||||
}
|
||||
},
|
||||
};
|
|
@ -6016,7 +6016,6 @@ DROP TABLE IF EXISTS `virtualshelfcontents`;
|
|||
CREATE TABLE `virtualshelfcontents` (
|
||||
`shelfnumber` int(11) NOT NULL DEFAULT 0 COMMENT 'foreign key linking to the virtualshelves table, defines the list that this record has been added to',
|
||||
`biblionumber` int(11) NOT NULL DEFAULT 0 COMMENT 'foreign key linking to the biblio table, defines the bib record that has been added to the list',
|
||||
`flags` int(11) DEFAULT NULL,
|
||||
`dateadded` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'date and time this bib record was added to the list',
|
||||
`borrowernumber` int(11) DEFAULT NULL COMMENT 'borrower number that created this list entry (only the first one is saved: no need for use in/as key)',
|
||||
KEY `shelfnumber` (`shelfnumber`),
|
||||
|
|
Loading…
Reference in a new issue