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.
这个提交包含在:
父节点
b3eaa6d1cb
当前提交
cf10703d2a
共有 1 个文件被更改,包括 30 次插入 和 0 次删除
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
正在加载…
在新工单中引用