21 lines
604 B
PHP
21 lines
604 B
PHP
<?php
|
|
/* FreePBX installer file
|
|
* This file is run when the module is installed through module admin
|
|
*
|
|
* Note: install.sql is depreciated and may not work. Its recommended to use this file instead.
|
|
*
|
|
* If this file returns false then the module will not install
|
|
* EX:
|
|
* return false;
|
|
*
|
|
*/
|
|
$sql = "CREATE TABLE IF NOT EXISTS HelloWorld_settings (
|
|
`key` varchar(255) NOT NULL default '',
|
|
`value` varchar(255) NOT NULL default '',
|
|
PRIMARY KEY (`key`)
|
|
);";
|
|
|
|
$check = sql($sql);
|
|
if (DB::IsError($check)) {
|
|
die_freepbx( "Can not create `HelloWorld` table: " . $check->getMessage() . "\n");
|
|
} |