Changeset 12508
- Timestamp:
- 09/14/11 17:05:19 (2 years ago)
- Files:
-
- modules/branches/2.10/queues/install.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.10/queues/install.php
r12507 r12508 598 598 } 599 599 600 outn(_("checking for answered_elsewhere field.."));601 $sql = "SELECT `answered_elsewhere` FROM queues_config";602 $check = $db->getRow($sql, DB_FETCHMODE_ASSOC);603 if(DB::IsError($check)) {604 // add new field605 $sql = "ALTER TABLE queues_config ADD `answered_elsewhere` TINYINT( 1 ) DEFAULT 0";606 $result = $db->query($sql);607 if(DB::IsError($result)) {608 die_freepbx($result->getDebugInfo());609 }610 out(_("OK"));611 } else {612 out(_("already exists"));613 }614 615 616 617 600 $freepbx_conf =& freepbx_conf::create(); 618 601
