Bug 16573: change created_on type - atomic update
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Tue, 24 May 2016 21:12:11 +0000 (18:12 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 1 Aug 2016 09:39:15 +0000 (09:39 +0000)
This patch change 'created_on' virtualshelves column to
datetime type

To test:
1) Apply the patch
2) Run updatedatabase.pl
3) Verify type of 'created_on' column

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>

installer/data/mysql/atomicupdate/bug-16573-change-created_on-column.sql [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug-16573-change-created_on-column.sql b/installer/data/mysql/atomicupdate/bug-16573-change-created_on-column.sql
new file mode 100644 (file)
index 0000000..8b258fc
--- /dev/null
@@ -0,0 +1 @@
+ALTER TABLE virtualshelves MODIFY COLUMN created_on DATETIME not NULL;