Bug 16573: Define virtualshelves.created_on as datetime for existing installs

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2016-07-22 09:51:00 +01:00 committed by Kyle M Hall
parent 162b9015d9
commit 44785935bd

View file

@ -10387,7 +10387,7 @@ $DBversion = "3.19.00.038";
if ( CheckVersion($DBversion) ) {
$dbh->do(q|
ALTER TABLE virtualshelves
ADD COLUMN created_on TIMESTAMP NOT NULL AFTER lastmodified
ADD COLUMN created_on DATETIME NOT NULL AFTER lastmodified
|);
# Set created_on = lastmodified
# I would say it's better than 0000-00-00