Bug 31212: Add Database update
Signed-off-by: Ann Flournoy <aflournoy@cityofkeller.com> Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
f729d46478
commit
2c19382503
|
|
@ -0,0 +1,17 @@
|
|||
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";
|
||||
},
|
||||
};
|
||||
Loading…
Reference in New Issue