[Migration] Tag Cloudlog as 2.5.0

This commit is contained in:
Peter Goodhall
2023-11-03 12:42:56 +00:00
parent a65112d37d
commit 6a75a4ed94
2 changed files with 25 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ $config['migration_enabled'] = TRUE;
|
*/
$config['migration_version'] = 149;
$config['migration_version'] = 150;
/*
|--------------------------------------------------------------------------

View File

@@ -0,0 +1,24 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* Tag Cloudlog as 2.5.0
*/
class Migration_tag_2_5_0 extends CI_Migration {
public function up()
{
// Tag Cloudlog 2.5.0
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.5.0'));
}
public function down()
{
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.4.11'));
}
}