| | 41 | |
|---|
| | 42 | // Version 2.0 upgrade. Yeah. 2.0 baby! |
|---|
| | 43 | $sql = "SELECT remotealert FROM ringgroups"; |
|---|
| | 44 | $check = $db->getRow($sql, DB_FETCHMODE_ASSOC); |
|---|
| | 45 | if(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 | |
|---|