Skip to content

Commit 4cf7d79

Browse files
committed
Add migration to tag Cloudlog as version 2.8.5
Introduces migration 241 to update the application version to 2.8.5 and trigger the version info dialog for users. Updates the migration version in the configuration accordingly.
1 parent cc1b92c commit 4cf7d79

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

application/config/migration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
|
2323
*/
2424

25-
$config['migration_version'] = 240;
25+
$config['migration_version'] = 241;
2626

2727
/*
2828
|--------------------------------------------------------------------------
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
defined('BASEPATH') OR exit('No direct script access allowed');
4+
5+
/*
6+
* Tag Cloudlog as 2.8.5 Migration
7+
*/
8+
9+
class Migration_tag_2_8_5 extends CI_Migration {
10+
11+
public function up()
12+
{
13+
14+
// Tag Cloudlog 2.8.5
15+
$this->db->where('option_name', 'version');
16+
$this->db->update('options', array('option_value' => '2.8.5'));
17+
18+
// Trigger Version Info Dialog
19+
$this->db->where('option_type', 'version_dialog');
20+
$this->db->where('option_name', 'confirmed');
21+
$this->db->update('user_options', array('option_value' => 'false'));
22+
23+
}
24+
25+
public function down()
26+
{
27+
$this->db->where('option_name', 'version');
28+
$this->db->update('options', array('option_value' => '2.8.4'));
29+
}
30+
}

0 commit comments

Comments
 (0)