Lines 1-7
Link Here
|
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
2 |
if( CheckVersion( $DBversion ) ) { |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
$dbh->do( "ALTER TABLE borrowers ADD COLUMN flgAnonymized tinyint DEFAULT 0" ); |
3 |
$dbh->do( "ALTER TABLE borrowers ADD COLUMN flgAnonymized tinyint DEFAULT 0" ) if !column_exists('borrowers', 'flgAnonymized'); |
4 |
$dbh->do( "ALTER TABLE deletedborrowers ADD COLUMN flgAnonymized tinyint DEFAULT 0" ); |
4 |
$dbh->do( "ALTER TABLE deletedborrowers ADD COLUMN flgAnonymized tinyint DEFAULT 0" ) if !column_exists('deletedborrowers', 'flgAnonymized'); |
5 |
SetVersion( $DBversion ); |
5 |
SetVersion( $DBversion ); |
6 |
print "Upgrade to $DBversion done (Bug 21336 - Add field flgAnonymized)\n"; |
6 |
print "Upgrade to $DBversion done (Bug 21336 - Add field flgAnonymized)\n"; |
7 |
} |
7 |
} |
8 |
- |
|
|