From 548e744d673332dd9a9797a0a54944f586f8237f Mon Sep 17 00:00:00 2001
From: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Date: Sat, 27 Oct 2018 10:00:49 +0100
Subject: [PATCH] Bug 21683: (follow-up) - DBUpdate for Dev installs
https://bugs.koha-community.org/show_bug.cgi?id=21682
---
installer/data/mysql/atomicupdate/bug_21682.perl | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 installer/data/mysql/atomicupdate/bug_21682.perl
diff --git a/installer/data/mysql/atomicupdate/bug_21682.perl b/installer/data/mysql/atomicupdate/bug_21682.perl
new file mode 100644
index 0000000000..16eeb3d80b
--- /dev/null
+++ b/installer/data/mysql/atomicupdate/bug_21682.perl
@@ -0,0 +1,7 @@
+$DBversion = 'XXX'; # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+ $dbh->do( "ALTER TABLE `stockrotationrotas` ALTER COLUMN `description` DROP DEFAULT" );
+
+ SetVersion( $DBversion );
+ print "Upgrade to $DBversion done (Bug 21682 - Remove default on stockrotationrotas.description )\n";
+}
--
2.19.1