Add migration to tag Cloudlog as version 2.6.22

Introduces a migration that updates the application version to 2.6.22 and triggers the version info dialog for users. The down method reverts the version back to 2.6.21.
这个提交包含在:
Peter Goodhall 2025-08-02 13:10:07 +01:00
父节点 b3eaa6d1cb
当前提交 cf10703d2a

查看文件

@ -0,0 +1,30 @@
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
/*
* Tag Cloudlog as 2.6.22
*/
class Migration_tag_2_6_22 extends CI_Migration {
public function up()
{
// Tag Cloudlog 2.6.22
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.6.22'));
// Trigger Version Info Dialog
$this->db->where('option_type', 'version_dialog');
$this->db->where('option_name', 'confirmed');
$this->db->update('user_options', array('option_value' => 'false'));
}
public function down()
{
$this->db->where('option_name', 'version');
$this->db->update('options', array('option_value' => '2.6.21'));
}
}