aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2013-10-11 14:15:46 +0200
committerAndreas Fischer <bantu@phpbb.com>2013-10-11 14:15:46 +0200
commitcab660f9097e7753bf9bc80c1cd1a0004adc421c (patch)
treeeab8767acec379d7d69ab9623ecc8f7c4e6a8d30 /phpBB/develop
parenta30f1729d8cb36d9d52167c08a139c99c63c4fdf (diff)
parent2198c29c205ba3a98e66746b9527c50c50f7c1e2 (diff)
downloadforums-cab660f9097e7753bf9bc80c1cd1a0004adc421c.tar
forums-cab660f9097e7753bf9bc80c1cd1a0004adc421c.tar.gz
forums-cab660f9097e7753bf9bc80c1cd1a0004adc421c.tar.bz2
forums-cab660f9097e7753bf9bc80c1cd1a0004adc421c.tar.xz
forums-cab660f9097e7753bf9bc80c1cd1a0004adc421c.zip
Merge remote-tracking branch 'phpbb/develop' into ticket/11621
* phpbb/develop: [ticket/11867] Schema files are not created by create_schema_files.php [ticket/11905] 3.1.0-a1 Migration [ticket/11903] Speed up paging test [ticket/11703] Extend the correct migration class. [ticket/11874] Correct when $phpbb_root_path is appended to build_url() [ticket/11703] Also use empty() for T_JQUERY_LINK. [ticket/11703] Add effectively_installed(). [ticket/11703] Make jQuery CDN switch more generic. [ticket/11874] Fix tests [ticket/11874] Do not always prepend the web path; only replace phpbb_root_path [ticket/11345] Don't include scheme, so HTTPS is used where necessary. [ticket/11345] Wrap remote webfonts in S_ALLOW_CDN. [ticket/11345] Move css import to template [ticket/11345] Add Droid Sans as fallback font [ticket/11345] Change font for buttons
Diffstat (limited to 'phpBB/develop')
-rw-r--r--phpBB/develop/migration_tips.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/phpBB/develop/migration_tips.php b/phpBB/develop/migration_tips.php
new file mode 100644
index 0000000000..51a579bdb5
--- /dev/null
+++ b/phpBB/develop/migration_tips.php
@@ -0,0 +1,42 @@
+<?php
+/**
+*
+* @package phpBB3
+* @copyright (c) 2013 phpBB Group
+* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
+*
+*/
+
+// This is to help with creating migration files for new versions
+// Use this to find what migrations are not depended on by any other migration
+// (the current migration tree tips)
+
+define('IN_PHPBB', true);
+$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './../';
+$phpEx = substr(strrchr(__FILE__, '.'), 1);
+include($phpbb_root_path . 'common.' . $phpEx);
+
+$phpbb_extension_manager = $phpbb_container->get('ext.manager');
+$finder = $phpbb_extension_manager->get_finder();
+
+$migrations = $finder
+ ->core_path('phpbb/db/migration/data/')
+ ->get_classes();
+$tips = $migrations;
+
+foreach ($migrations as $migration_class)
+{
+ foreach ($migration_class::depends_on() as $dependency)
+ {
+ if (($tips_key = array_search($dependency, $tips)) !== false)
+ {
+ unset($tips[$tips_key]);
+ }
+ }
+}
+
+foreach ($tips as $migration)
+{
+ echo "\t\t\t'{$migration}',\n";
+}
+