Changeset 2702
- Timestamp:
- 03/19/10 14:13:47 (23 months ago)
- File:
-
- 1 edited
-
trunk/gui/include/class.databaseUpdate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/include/class.databaseUpdate.php
r2701 r2702 979 979 protected function _databaseUpdate_31() { 980 980 981 $sqlUpd = array(); 981 982 $sql = Database::getInstance(); 982 983 983 984 // Test added to prevent error if old version of 984 // database _databaseUpdate_29was already applyed985 // self::database_databaseUpdate_29() was already applyed 985 986 $query= " 986 SHOW COLUMNS FROM987 `hosting_plans`988 LIKE989 'tos'990 ;987 SHOW COLUMNS FROM 988 `hosting_plans` 989 LIKE 990 'tos' 991 ; 991 992 "; 992 993 993 994 $rs = exec_query($sql, $query); 994 995 995 996 // Create the new columns only if doesn't already exists 996 997 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 "; 1005 1005 } 1006 1007 return $sqlUpd; 1006 1008 } 1007 1009
Note: See TracChangeset
for help on using the changeset viewer.
