Show
Ignore:
Timestamp:
06/21/06 08:57:12 (7 years ago)
Author:
qldrob
Message:

Here's the rest of the ringgroups changes. Please test!

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/ringgroups/install.php

    r1911 r2073  
    3939    } 
    4040} 
     41 
     42// Version 2.0 upgrade. Yeah. 2.0 baby!  
     43$sql = "SELECT remotealert FROM ringgroups"; 
     44$check = $db->getRow($sql, DB_FETCHMODE_ASSOC); 
     45if(DB::IsError($check)) { 
     46  // add new field 
     47    $sql = "ALTER TABLE ringgroups ADD remotealert VARCHAR( 80 ) NULL ;"; 
     48    $result = $db->query($sql); 
     49    if(DB::IsError($result)) { die($result->getDebugInfo()); } 
     50 
     51    $sql = "ALTER TABLE ringgroups ADD needsconf VARCHAR( 10 ) NULL ;"; 
     52    $result = $db->query($sql); 
     53    if(DB::IsError($result)) { die($result->getDebugInfo()); } 
     54 
     55    $sql = "ALTER TABLE ringgroups ADD toolate VARCHAR( 80 ) NULL ;"; 
     56    $result = $db->query($sql); 
     57    if(DB::IsError($result)) { die($result->getDebugInfo()); } 
     58} 
     59 
    4160?>