Changeset 5847

Show
Ignore:
Timestamp:
06/30/08 22:44:29 (2 months ago)
Author:
p_lindheimer
Message:

remove cidlookup field from core incoming table - should never have been there

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/cidlookup/install.php

    r5483 r5847  
    6565} 
    6666 
    67 // second update 
    68 $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  
    7867outn("Migrating channel routing to Zap DID routing.."); 
    7968$sql = "SELECT channel FROM cidlookup_incoming"; 
     
    10089} 
    10190 
     91// This field had been wrongfully added to incoming quite some time ago 
     92// this should maybe be added to core as well 
     93// 
     94outn("Checking for cidlookup field in core's incoming table.."); 
     95$sql = "ALTER TABLE incoming DROP cidlookup"; 
     96$results = $db->query($sql); 
     97if (DB::IsError($results)) {  
     98        out("not present"); 
     99} else { 
     100        out("removed"); 
     101} 
     102 
    102103?> 
    103104 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads