Bug 18173 - DBRev 16.12.00.019

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2017-03-31 11:23:43 +00:00
parent 3be702c1a1
commit 6831dd5977
3 changed files with 15 additions and 14 deletions

View File

@ -29,7 +29,7 @@ use vars qw{ $VERSION };
# - #4 : the developer version. The 4th number is the database subversion.
# used by developers when the database changes. updatedatabase take care of the changes itself
# and is automatically called by Auth.pm when needed.
$VERSION = "16.12.00.018";
$VERSION = "16.12.00.019";
sub version {
return $VERSION;

View File

@ -1,13 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
if ( column_exists( 'issues', 'return' ) ) {
$dbh->do(q|ALTER TABLE issues DROP column `return`|);
}
if ( column_exists( 'old_issues', 'return' ) ) {
$dbh->do(q|ALTER TABLE old_issues DROP column `return`|);
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18173 - Remove issues.return DB field)\n";
}

View File

@ -14034,6 +14034,20 @@ if ( CheckVersion($DBversion) ) {
SetVersion($DBversion);
}
$DBversion = "16.12.00.019";
if( CheckVersion( $DBversion ) ) {
if ( column_exists( 'issues', 'return' ) ) {
$dbh->do(q|ALTER TABLE issues DROP column `return`|);
}
if ( column_exists( 'old_issues', 'return' ) ) {
$dbh->do(q|ALTER TABLE old_issues DROP column `return`|);
}
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 18173 - Remove issues.return DB field)\n";
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.