Skip to content

Commit

Permalink
Bump version to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lassik committed Feb 3, 2018
1 parent 9037c6f commit 8f59532
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"type": "phpbb-extension",
"description": "Notify on Telegram whenever someone posts on phpBB",
"homepage": "https://github.com/lassik/phpbb-ext-telegramnotifications",
"version": "0.5.0",
"time": "2018-01-30",
"version": "0.6.0",
"time": "2018-02-03",
"license": "GPL-2.0",
"authors": [{
"name": "Lassi Kortela",
Expand Down
35 changes: 35 additions & 0 deletions migrations/release_0_6_0.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php
/**
*
* @package phpBB extension - Telegram notifications
* @copyright (c) 2018 Lassi Kortela
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/

namespace lassik\telegramnotifications\migrations;

/**
* @package phpBB extension - Telegram notifications
*/
class release_0_6_0 extends \phpbb\db\migration\migration
{
static public function depends_on()
{
return array('\lassik\telegramnotifications\migrations\release_0_5_0');
}

public function effectively_installed()
{
return (isset($this->config['lassik_telegram_version']) &&
phpbb_version_compare($this->config['lassik_telegram_version'],
'0.6.0', '>='));
}

public function update_data()
{
return array(
array('config.update', array('lassik_telegram_version', '0.6.0')),
);
}
}

0 comments on commit 8f59532

Please sign in to comment.