Lines 5-11
if( CheckVersion( $DBversion ) ) {
Link Here
|
5 |
$dbh->do( "ALTER TABLE accountlines DROP COLUMN accountno" ); |
5 |
$dbh->do( "ALTER TABLE accountlines DROP COLUMN accountno" ); |
6 |
} |
6 |
} |
7 |
|
7 |
|
|
|
8 |
if( column_exists( 'statistics', 'proccode' ) ) { |
9 |
$dbh->do( "ALTER TABLE statistics DROP COLUMN proccode" ); |
10 |
} |
11 |
|
8 |
# Always end with this (adjust the bug info) |
12 |
# Always end with this (adjust the bug info) |
9 |
SetVersion( $DBversion ); |
13 |
SetVersion( $DBversion ); |
10 |
print "Upgrade to $DBversion done (Bug XXXXX - description)\n"; |
14 |
print "Upgrade to $DBversion done (Bug 21683 - Remove accountlines.accountno and statistics.proccode fields)\n"; |
11 |
} |
15 |
} |
12 |
- |
|
|