From 1ad78fe6c89ef6b8ffc03c8938698dbda1055636 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 31 Oct 2018 15:36:21 -0300 Subject: [PATCH] Bug 21682: Add update DB entry for existing installs Signed-off-by: Martin Renvoize --- installer/data/mysql/atomicupdate/bug_21620.perl | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_21620.perl diff --git a/installer/data/mysql/atomicupdate/bug_21620.perl b/installer/data/mysql/atomicupdate/bug_21620.perl new file mode 100644 index 0000000000..9634be5913 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_21620.perl @@ -0,0 +1,9 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + # you can use $dbh here like: + $dbh->do( "ALTER TABLE stockrotationrotas CHANGE COLUMN description description text" ); + + # Always end with this (adjust the bug info) + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 21620 Remove default on stockrotationrotas.description)\n"; +} -- 2.19.1