Changeset 2702


Ignore:
Timestamp:
03/19/10 14:13:47 (23 months ago)
Author:
nuxwin
Message:
  • [GUI] Small fix
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/include/class.databaseUpdate.php

    r2701 r2702  
    979979        protected function _databaseUpdate_31() { 
    980980 
     981                $sqlUpd = array(); 
    981982                $sql = Database::getInstance(); 
    982983 
    983984                // Test added to prevent error if old version of 
    984                 // database _databaseUpdate_29 was already applyed 
     985                // self::database_databaseUpdate_29() was already applyed 
    985986                $query= " 
    986                                 SHOW COLUMNS FROM 
    987                                         `hosting_plans` 
    988                                 LIKE 
    989                                         'tos' 
    990                                 ; 
     987                        SHOW COLUMNS FROM 
     988                                `hosting_plans` 
     989                        LIKE 
     990                                'tos' 
     991                        ; 
    991992                "; 
    992                  
     993 
    993994                $rs = exec_query($sql, $query); 
    994995                 
    995996                // Create the new columns only if doesn't already exists 
    996997                if ($rs->RecordCount() == 0) { 
    997                         $sqlUpd = array(); 
    998                          
    999                                 $sqlUpd[] = " 
    1000                                         ALTER TABLE 
    1001                                         `hosting_plans` ADD `tos` BLOB NOT NULL 
    1002                                     ; 
    1003                                 "; 
    1004                         return $sqlUpd; 
     998                        $sqlUpd[] = " 
     999                                ALTER TABLE 
     1000                                    `hosting_plans` 
     1001                                ADD 
     1002                                        `tos` BLOB NOT NULL 
     1003                                ; 
     1004                        "; 
    10051005                } 
     1006                 
     1007                return $sqlUpd; 
    10061008        } 
    10071009 
Note: See TracChangeset for help on using the changeset viewer.