Changeset 5847
- Timestamp:
- 06/30/08 22:44:29 (2 months ago)
- Files:
-
- modules/branches/2.4/cidlookup/install.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/cidlookup/install.php
r5483 r5847 65 65 } 66 66 67 // second update68 $sql = "SELECT cidlookup from incoming;";69 $check = $db->query($sql);70 if (DB::IsError($check)) {71 $sql = "ALTER TABLE incoming ADD cidlookup INT(2);";72 $check = $db->query($sql);73 if (DB::IsError($check)) {74 die_freepbx( "Can not alter `incoming` table: " . $check->getMessage() . "\n");75 }76 }77 78 67 outn("Migrating channel routing to Zap DID routing.."); 79 68 $sql = "SELECT channel FROM cidlookup_incoming"; … … 100 89 } 101 90 91 // This field had been wrongfully added to incoming quite some time ago 92 // this should maybe be added to core as well 93 // 94 outn("Checking for cidlookup field in core's incoming table.."); 95 $sql = "ALTER TABLE incoming DROP cidlookup"; 96 $results = $db->query($sql); 97 if (DB::IsError($results)) { 98 out("not present"); 99 } else { 100 out("removed"); 101 } 102 102 103 ?> 103 104
