From 91f53dddd2db7a9b8a7598244fc16eea9299e7da Mon Sep 17 00:00:00 2001 From: Peter Goodhall Date: Tue, 9 Feb 2021 17:33:20 +0000 Subject: [PATCH] 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 --- application/config/migration.php | 2 +- .../062_add_globalsearch_to_options.php | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 application/migrations/062_add_globalsearch_to_options.php diff --git a/application/config/migration.php b/application/config/migration.php index 5ebc4906..09355286 100644 --- a/application/config/migration.php +++ b/application/config/migration.php @@ -21,7 +21,7 @@ $config['migration_enabled'] = TRUE; | be upgraded / downgraded to. | */ -$config['migration_version'] = 61; +$config['migration_version'] = 62; /* |-------------------------------------------------------------------------- diff --git a/application/migrations/062_add_globalsearch_to_options.php b/application/migrations/062_add_globalsearch_to_options.php new file mode 100644 index 00000000..08b5ebb6 --- /dev/null +++ b/application/migrations/062_add_globalsearch_to_options.php @@ -0,0 +1,25 @@ + "global_search", 'option_value' => "false", 'autoload' => "yes"), + ); + + $this->db->insert_batch('options', $data); + } + + public function down() + { + // No option to down + } +} \ No newline at end of file