mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 01:59:14 +00:00
Added Migration to allow Global Search
This will allow code to be added to allow non logged in users to access the search button thats currently controlled via cloudlog.php config file
This commit is contained in:
parent
5924434bf6
commit
91f53dddd2
@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE;
|
||||
| be upgraded / downgraded to.
|
||||
|
|
||||
*/
|
||||
$config['migration_version'] = 61;
|
||||
$config['migration_version'] = 62;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
25
application/migrations/062_add_globalsearch_to_options.php
Normal file
25
application/migrations/062_add_globalsearch_to_options.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?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_globalsearch_to_options extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
$data = array(
|
||||
array('option_name' => "global_search", 'option_value' => "false", 'autoload' => "yes"),
|
||||
);
|
||||
|
||||
$this->db->insert_batch('options', $data);
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
// No option to down
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user