root/freepbx/trunk/upgrades/2.0beta1/emergencycid.php

Revision 1015, 308 bytes (checked in by qldrob, 7 years ago)

Fixed spelling mistake too.

  • Property svn:mime-type set to text/plain
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2
3 $sql = "SELECT emergency_cid from devices";
4 $devices = $db->getRow($sql, DB_FETCHMODE_ASSOC);
5 if(DB::IsError($devices)) {     
6   $sql = "ALTER TABLE devices ADD emergency_cid VARCHAR( 100 ) NULL";
7   $result = $db->query($sql);
8   if(DB::IsError($result)) {     
9     die($result->getDebugInfo());
10   }
11 }
12
13 ?>
Note: See TracBrowser for help on using the browser.