]> git.koha-community.org Git - koha.git/blob - installer/data/mysql/atomicupdate/bug_31212_dbrev.pl
Bug 31212: DBIC schema
[koha.git] / installer / data / mysql / atomicupdate / bug_31212_dbrev.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "31212",
5     description => "Update items.datelastseen and deleteditems.datelastseen to datetime data format",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         $dbh->do(q{
10             ALTER TABLE `items` MODIFY COLUMN `datelastseen` DATETIME DEFAULT NULL
11         });
12         $dbh->do(q{
13             ALTER TABLE `deleteditems` MODIFY COLUMN `datelastseen` DATETIME DEFAULT NULL
14         });
15         say $out "items and deleteditems table updated";
16     },
17 };