Cloudlog/application/migrations/068_add_cat_timeout_to_options.php
Peter Goodhall 4fb2d03913 [Global Options] Added the option to define the Radio Timeout Warning
Radio timeout warning is used to alert users when a radio interface has disconnected and is providing stale info for logging.
2021-05-03 14:50:33 +01:00

25 行
无行尾
607 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* This migration creates a table called options which will hold global options needed within cloudlog
* removing the need for lots of configuration files.
*/
class Migration_add_cat_timeout_to_options extends CI_Migration {
public function up()
{
$data = array(
array('option_name' => "cat_timeout_interval", 'option_value' => "1800", 'autoload' => "yes"),
);
$this->db->insert_batch('options', $data);
}
public function down()
{
// No option to down
}
}