mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 17:52:16 +00:00
542f199295
Store version number in the options table so that its easier to update for the frontend rather than the config.php which we don't really want to touch
25 lines
590 B
PHP
25 lines
590 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_version_to_config extends CI_Migration {
|
|
|
|
public function up()
|
|
{
|
|
$data = array(
|
|
array('option_name' => "version", 'option_value' => "2.4.5", 'autoload' => "yes"),
|
|
);
|
|
|
|
$this->db->insert_batch('options', $data);
|
|
}
|
|
|
|
public function down()
|
|
{
|
|
// No option to down
|
|
}
|
|
} |