Bug 14171: Update borrowers date fields
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 3 Sep 2015 15:07:42 +0000 (16:07 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Sep 2015 13:49:49 +0000 (10:49 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
http://bugs.koha-community.org/show_bug.cgi?id=14717

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
installer/data/mysql/atomicupdate/bug_14717_get_rid_of_0000-00-00_borrowers_table.sql [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug_14717_get_rid_of_0000-00-00_borrowers_table.sql b/installer/data/mysql/atomicupdate/bug_14717_get_rid_of_0000-00-00_borrowers_table.sql
new file mode 100644 (file)
index 0000000..8b73b30
--- /dev/null
@@ -0,0 +1,4 @@
+update borrowers set debarred = NULL where debarred = '0000-00-00';
+update borrowers set dateexpiry = NULL where dateexpiry = '0000-00-00';
+update borrowers set dateofbirth = NULL where dateofbirth = '0000-00-00';
+update borrowers set dateenrolled = NULL where dateenrolled = '0000-00-00';