View | Details | Raw Unified | Return to bug 26995
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_26995.perl (-4 / +3 lines)
Lines 1-18 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
    if ( !column_exists( 'borrowers', 'relationship' ) ) {
3
    if ( column_exists( 'borrowers', 'relationship' ) ) {
4
        $dbh->do(q{
4
        $dbh->do(q{
5
            ALTER TABLE borrowers DROP COLUMN relationship
5
            ALTER TABLE borrowers DROP COLUMN relationship
6
        });
6
        });
7
    }
7
    }
8
8
9
    if ( !column_exists( 'deletedborrowers', 'relationship' ) ) {
9
    if ( column_exists( 'deletedborrowers', 'relationship' ) ) {
10
        $dbh->do(q{
10
        $dbh->do(q{
11
            ALTER TABLE deletedborrowers DROP COLUMN relationship
11
            ALTER TABLE deletedborrowers DROP COLUMN relationship
12
        });
12
        });
13
    }
13
    }
14
14
15
    if ( !column_exists( 'borrower_modifications', 'relationship' ) ) {
15
    if ( column_exists( 'borrower_modifications', 'relationship' ) ) {
16
        $dbh->do(q{
16
        $dbh->do(q{
17
            ALTER TABLE borrower_modifications DROP COLUMN relationship
17
            ALTER TABLE borrower_modifications DROP COLUMN relationship
18
        });
18
        });
19
- 

Return to bug 26995