Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -89,6 +89,7 @@ |
90 | 90 | # $wgDBtype should be checked to specifiy the proper file |
91 | 91 | $wgExtNewTables = array(); // table, dir |
92 | 92 | $wgExtNewFields = array(); // table, column, dir |
| 93 | +$wgExtPGNewFields = array(); // table, column attributes; for PostgreSQL |
93 | 94 | $wgExtNewIndexes = array(); // table, index, dir |
94 | 95 | |
95 | 96 | function rename_table( $from, $to, $patch ) { |
— | — | @@ -1497,7 +1498,7 @@ |
1498 | 1499 | } else |
1499 | 1500 | echo "... archive.ar_deleted already exists\n"; |
1500 | 1501 | |
1501 | | - global $wgExtNewTables, $wgExtNewFields, $wgExtNewIndexes; |
| 1502 | + global $wgExtNewTables, $wgExtPGNewFields, $wgExtNewIndexes; |
1502 | 1503 | # Add missing extension tables |
1503 | 1504 | foreach ( $wgExtNewTables as $nt ) { |
1504 | 1505 | if ($wgDatabase->tableExists($nt[0])) { |
— | — | @@ -1509,7 +1510,7 @@ |
1510 | 1511 | dbsource($nt[1]); |
1511 | 1512 | } |
1512 | 1513 | # Add missing extension fields |
1513 | | - foreach ( $wgExtNewFields as $nc ) { |
| 1514 | + foreach ( $wgExtPGNewFields as $nc ) { |
1514 | 1515 | $fi = $wgDatabase->fieldInfo($nc[0], $nc[1]); |
1515 | 1516 | if (!is_null($fi)) { |
1516 | 1517 | echo "... column $nc[0].$nc[1] already exists\n"; |