diff --git a/.gitignore b/.gitignore index c0f2e53..eef3883 100644 --- a/.gitignore +++ b/.gitignore @@ -62,3 +62,4 @@ Icon /images/no_change.gif /images/arrow_down.gif /images/arrow_up.gif +/migrations/v099_beta1.php diff --git a/composer.json b/composer.json index 32f25cc..acffd07 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "type": "phpbb-extension", "description": "Football Prediction League", "homepage": "http://football.bplaced.net", - "version": "0.9.9b1", + "version": "0.9.9", "time": "2017-09-09", "license": "GPL-2.0", "authors": [{ @@ -18,7 +18,7 @@ "extra": { "display-name": "Football Prediction League", "soft-require": { - "phpbb/phpbb": "3.1.*" + "phpbb/phpbb": ">3.1.*" }, "version-check": { "host": "football.bplaced.net", diff --git a/migrations/v099_beta1.php b/migrations/v099_beta.php similarity index 77% rename from migrations/v099_beta1.php rename to migrations/v099_beta.php index 07c36c5..6d73a78 100644 --- a/migrations/v099_beta1.php +++ b/migrations/v099_beta.php @@ -1,7 +1,7 @@ config['football_version']) && version_compare($this->config['football_version'], '0.9.9b1', '>='); + return isset($this->config['football_version']) && version_compare($this->config['football_version'], '0.9.9', '>='); } static public function depends_on() @@ -28,7 +28,7 @@ class v099_beta1 extends \phpbb\db\migration\migration array('config.add', array('football_time_shift', '1', '0')), array('config.add', array('football_display_last_users', '5', '0')), array('config.add', array('football_display_last_results', '0', '0')), - array('config.update', array('football_version', '0.9.9b1', '0')), + array('config.update', array('football_version', '0.9.9', '0')), ); } }