Bug 21682: Add update DB entry for existing installs

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2018-10-31 15:36:21 -03:00 committed by Nick Clemens
parent c98c1d7378
commit ea19eee02e
1 changed files with 9 additions and 0 deletions

View File

@ -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 21682 - Remove default on stockrotationrotas.description)\n";
}