root/contributed_modules/modules/setcid/install.php

Revision 7151, 469 bytes (checked in by mbrevda, 4 years ago)

creating setcid module directory

Line 
1 <?php
2
3 global $db;
4
5 $autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT";
6 $sql = "CREATE TABLE IF NOT EXISTS setcid (
7   cid_id INTEGER NOT NULL PRIMARY KEY $autoincrement,
8   cid_name VARCHAR( 50 ) ,
9   cid_num VARCHAR( 50 ) ,
10   description VARCHAR( 50 ) ,
11   dest VARCHAR( 255 )
12 )";
13
14 $check = $db->query($sql);
15 if(DB::IsError($check)) {
16   die_freepbx("Can not create languages table\n");
17 }
18
19 ?>
Note: See TracBrowser for help on using the browser.