Koha/installer/data/mysql/db_revs/221200037.pl
Tomas Cohen Arazi f89912e864
Bug 31212: DBRev 22.12.00.037
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-05-12 17:50:00 -03:00

17 lines
549 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "31212",
description => "Update items.datelastseen and deleteditems.datelastseen to datetime data format",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
$dbh->do(q{
ALTER TABLE `items` MODIFY COLUMN `datelastseen` DATETIME DEFAULT NULL
});
$dbh->do(q{
ALTER TABLE `deleteditems` MODIFY COLUMN `datelastseen` DATETIME DEFAULT NULL
});
say $out "items and deleteditems table updated";
},
};