Skip to content

Commit

Permalink
Merge branch 'develop32' into master32
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajaki authored and Sajaki committed Apr 5, 2021
2 parents 1813bd9 + c40f7a6 commit fef517a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions migrations/release_2_0_0.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,41 @@ public function revert_schema()
public function update_data()
{
return [

// Remove old config if it exists
['if', [
isset($this->config['recenttopics']),
['config.remove', ['recenttopics']],
]],
['if', [
isset($this->config['rt_mod_version']),
['config.remove', ['rt_mod_version']],
]],
['if', [
isset($this->config['rt_version']),
['config.remove', ['rt_version']],
]],
['if', [
isset($this->config['rt_number']),
['config.remove', ['rt_number']],
]],
['if', [
isset($this->config['rt_page_number']),
['config.remove', ['rt_page_number']],
]],
['if', [
isset($this->config['rt_anti_topics']),
['config.remove', ['rt_anti_topics']],
]],
['if', [
isset($this->config['rt_parents']),
['config.remove', ['rt_parents']],
]],
['if', [
isset($this->config['rt_index']),
['config.remove', ['rt_index']],
]],

// Add new config vars
['config.add', ['rt_version', '2.0.0']],
['config.add', ['rt_number', 5]],
Expand Down

0 comments on commit fef517a

Please sign in to comment.