diff options
author | David King <imkingdavid@gmail.com> | 2013-10-04 16:17:03 -0700 |
---|---|---|
committer | David King <imkingdavid@gmail.com> | 2013-10-04 16:17:03 -0700 |
commit | 3f7f2548ccbf7da228216e6717ff4678089fc8e6 (patch) | |
tree | 2931798853354c93a6d2bf3ad29c11b3de8e73eb | |
parent | b79d811b3a10eeaf4c6e9a4180b592ea551df548 (diff) | |
download | forums-3f7f2548ccbf7da228216e6717ff4678089fc8e6.tar forums-3f7f2548ccbf7da228216e6717ff4678089fc8e6.tar.gz forums-3f7f2548ccbf7da228216e6717ff4678089fc8e6.tar.bz2 forums-3f7f2548ccbf7da228216e6717ff4678089fc8e6.tar.xz forums-3f7f2548ccbf7da228216e6717ff4678089fc8e6.zip |
[ticket/11885] Use conditional in update_data()
PHPBB3-11885
3 files changed, 9 insertions, 6 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 index 45220e880c..47eabb4c66 100644 --- a/phpBB/phpbb/db/migration/data/v30x/release_3_0_12.php +++ b/phpBB/phpbb/db/migration/data/v30x/release_3_0_12.php @@ -23,8 +23,9 @@ class release_3_0_12 extends \phpbb\db\migration\migration public function update_data() { - return array( + return array('if', array( + phpbb_version_compare($this->config['version'], '3.0.12', '<'), 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 index 91fb19c018..e6260374ad 100644 --- 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 @@ -23,8 +23,9 @@ class release_3_0_12_rc2 extends \phpbb\db\migration\migration public function update_data() { - return array( + return array('if', array( + phpbb_version_compare($this->config['version'], '3.0.12-RC2', '<'), 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 index a1265722c7..a6e83ada9c 100644 --- 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 @@ -23,8 +23,9 @@ class release_3_0_12_rc3 extends \phpbb\db\migration\migration public function update_data() { - return array( + return array('if', array( + phpbb_version_compare($this->config['version'], '3.0.12-RC3', '<'), array('config.update', array('version', '3.0.12-RC3')), - ); + )); } } |