aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migration/data/v30x
diff options
context:
space:
mode:
authorDavid King <imkingdavid@gmail.com>2013-10-04 15:57:42 -0700
committerDavid King <imkingdavid@gmail.com>2013-10-04 15:57:42 -0700
commit62ad0984c7f2d6047b22c630a216a21c2e838e83 (patch)
treead911ac3113f74baf8264baf21b290b49823ccb3 /phpBB/phpbb/db/migration/data/v30x
parent82b9df543b8bebd30b02e2ad9d0731c80fb6d19c (diff)
downloadforums-62ad0984c7f2d6047b22c630a216a21c2e838e83.tar
forums-62ad0984c7f2d6047b22c630a216a21c2e838e83.tar.gz
forums-62ad0984c7f2d6047b22c630a216a21c2e838e83.tar.bz2
forums-62ad0984c7f2d6047b22c630a216a21c2e838e83.tar.xz
forums-62ad0984c7f2d6047b22c630a216a21c2e838e83.zip
[ticket/11885] Add migration files for 3.0.12-RC2 and RC3 and 3.0.12
PHPBB3-11885
Diffstat (limited to 'phpBB/phpbb/db/migration/data/v30x')
-rw-r--r--phpBB/phpbb/db/migration/data/v30x/release_3_0_12.php30
-rw-r--r--phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc2.php30
-rw-r--r--phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc3.php30
3 files changed, 90 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v30x/release_3_0_12.php b/phpBB/phpbb/db/migration/data/v30x/release_3_0_12.php
new file mode 100644
index 0000000000..492812ae8d
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v30x/release_3_0_12.php
@@ -0,0 +1,30 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v30x;
+
+class release_3_0_12 extends \phpbb\db\migration\migration
+{
+ public function effectively_installed()
+ {
+ return phpbb_version_compare($this->config['version'], '3.0.12', '>=');
+ }
+
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v30x\release_3_0_12_rc3');
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.update', array('version', '3.0.12')),
+ );
+ }
+}
diff --git a/phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc2.php b/phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc2.php
new file mode 100644
index 0000000000..ae03b59a9e
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc2.php
@@ -0,0 +1,30 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v30x;
+
+class release_3_0_12_rc2 extends \phpbb\db\migration\migration
+{
+ public function effectively_installed()
+ {
+ return phpbb_version_compare($this->config['version'], '3.0.12-RC2', '>=');
+ }
+
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v30x\release_3_0_12_rc1');
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.update', array('version', '3.0.12-RC2')),
+ );
+ }
+}
diff --git a/phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc3.php b/phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc3.php
new file mode 100644
index 0000000000..15ce9ce37a
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v30x/release_3_0_12_rc3.php
@@ -0,0 +1,30 @@
+<?php
+/**
+*
+* @package migration
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
+*
+*/
+
+namespace phpbb\db\migration\data\v30x;
+
+class release_3_0_12_rc3 extends \phpbb\db\migration\migration
+{
+ public function effectively_installed()
+ {
+ return phpbb_version_compare($this->config['version'], '3.0.12-RC3', '>=');
+ }
+
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v30x\release_3_0_12_rc2');
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('config.update', array('version', '3.0.12-RC3')),
+ );
+ }
+}