Koha/installer/data/mysql/db_revs/220600029.pl
Tomas Cohen Arazi 1c924bbcf4
Bug 30392: DBRev 22.06.00.029
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-01 14:35:35 -03:00

24 lines
749 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "30392",
description => "Add deleteditems.deleted_on",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
unless ( column_exists('items', 'deleted_on') ) {
$dbh->do(q{
ALTER TABLE items
ADD COLUMN deleted_on DATETIME DEFAULT NULL COMMENT 'date/time of deletion'
AFTER timestamp
});
}
unless ( column_exists('deleteditems', 'deleted_on') ) {
$dbh->do(q{
ALTER TABLE deleteditems
ADD COLUMN deleted_on DATETIME DEFAULT NULL COMMENT 'date/time of deletion'
AFTER timestamp
});
}
},
};