File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 2222|
2323*/
2424
25- $ config ['migration_version ' ] = 193 ;
25+ $ config ['migration_version ' ] = 194 ;
2626
2727/*
2828|--------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ defined ('BASEPATH ' ) OR exit ('No direct script access allowed ' );
4+
5+ /*
6+ Tag Wavelog as Version 1.5.2
7+ */
8+
9+ class Migration_tag_1_5_2 extends CI_Migration {
10+
11+ public function up ()
12+ {
13+
14+ // Tag Wavelog New Version
15+ $ this ->db ->where ('option_name ' , 'version ' );
16+ $ this ->db ->update ('options ' , array ('option_value ' => '1.5.2 ' ));
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+ // Also set Version Dialog to "both" if only custom text is applied
24+ $ this ->db ->where ('option_name ' , 'version_dialog ' );
25+ $ this ->db ->where ('option_value ' , 'custom_text ' );
26+ $ this ->db ->update ('options ' , array ('option_value ' => 'both ' ));
27+
28+
29+ }
30+
31+ public function down ()
32+ {
33+ $ this ->db ->where ('option_name ' , 'version ' );
34+ $ this ->db ->update ('options ' , array ('option_value ' => '1.5.1 ' ));
35+ }
36+ }
You can’t perform that action at this time.
0 commit comments