root/modules/branches/2.3/pinsets/install.php

Revision 4767, 0.5 kB (checked in by gregmac, 6 years ago)

Change all freepbx die() calls to die_freepbx()

  • Property svn:mime-type set to text/plain
  • Property svn:eol-style set to native
Line 
1 <?php
2
3 global $db;
4 global $amp_conf;
5
6 $autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT";
7
8 $sql = "CREATE TABLE IF NOT EXISTS pinsets (
9   pinsets_id INTEGER NOT NULL  PRIMARY KEY $autoincrement,
10   passwords LONGTEXT,
11   description VARCHAR( 50 ) ,
12   addtocdr TINYINT( 1 ) ,
13   deptname VARCHAR( 50 ) ,
14   used_by VARCHAR( 255 )
15 )";
16
17 $check = $db->query($sql);
18 if(DB::IsError($check)) {
19         die_freepbx("Can not create `pinsets` table\n");
20 }
21
22 ?>
Note: See TracBrowser for help on using the browser.