mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
set default value for additional OQRS Option
This commit is contained in:
@@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
||||
|
|
||||
*/
|
||||
|
||||
$config['migration_version'] = 165;
|
||||
$config['migration_version'] = 166;
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
20
application/migrations/166_set_oqrs_stationname_option.php
Normal file
20
application/migrations/166_set_oqrs_stationname_option.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') or exit('No direct script access allowed');
|
||||
|
||||
/*
|
||||
* Create a dxpedition table
|
||||
*/
|
||||
|
||||
class Migration_set_oqrs_stationname_option extends CI_Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
$this->db->query("INSERT INTO options (option_name, option_value, autoload) SELECT DISTINCT 'groupedSearchShowStationName', 'on', NULL FROM options WHERE NOT EXISTS (SELECT 1 FROM options WHERE option_name = 'groupedSearchShowStationName');");
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
$this->db->query("DELETE FROM options WHERE option_name = 'groupedSearchShowStationName';");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user