aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db/migrator.php
diff options
context:
space:
mode:
authorn-aleha <nick_aleha@myway.com>2014-08-26 02:56:47 +0300
committern-aleha <nick_aleha@myway.com>2014-08-26 02:56:47 +0300
commitbcc1b7aec913a8c1add2cc4975fe402144c08f41 (patch)
tree9a7370d28465b2f81cd02fbbeafc1b9c5bfea15f /phpBB/phpbb/db/migrator.php
parent7cd6dbe8981cb18b9728bc9fae8b754cd6f4e685 (diff)
downloadforums-bcc1b7aec913a8c1add2cc4975fe402144c08f41.tar
forums-bcc1b7aec913a8c1add2cc4975fe402144c08f41.tar.gz
forums-bcc1b7aec913a8c1add2cc4975fe402144c08f41.tar.bz2
forums-bcc1b7aec913a8c1add2cc4975fe402144c08f41.tar.xz
forums-bcc1b7aec913a8c1add2cc4975fe402144c08f41.zip
[ticket/11909] Remove unused function load_migrations
Remove unused function load_migrations from \phpbb\db\migrator PHPBB3-11909
Diffstat (limited to 'phpBB/phpbb/db/migrator.php')
-rw-r--r--phpBB/phpbb/db/migrator.php54
1 files changed, 0 insertions, 54 deletions
diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php
index 8bc63e564a..44bea3c5d2 100644
--- a/phpBB/phpbb/db/migrator.php
+++ b/phpBB/phpbb/db/migrator.php
@@ -715,60 +715,6 @@ class migrator
}
/**
- * Load migration data files from a directory
- *
- * @param \phpbb\finder $finder
- * @param string $path Path to migration data files
- * @param bool $check_fulfillable If TRUE (default), we will check
- * if all of the migrations are fulfillable after loading them.
- * If FALSE, we will not check. You SHOULD check at least once
- * to prevent errors (if including multiple directories, check
- * with the last call to prevent throwing errors unnecessarily).
- * @return array Array of migration names
- * @throws \phpbb\db\migration\exception
- */
- public function load_migrations(\phpbb\finder $finder, $path, $check_fulfillable = true)
- {
- if (!is_dir($path))
- {
- throw new \phpbb\db\migration\exception('DIRECTORY INVALID', $path);
- }
-
- $migrations = array();
-
- $files = $finder
- ->extension_directory("/")
- ->find_from_paths(array('/' => $path));
- foreach ($files as $file)
- {
- $migrations[$file['path'] . $file['filename']] = '';
- }
- $migrations = $finder->get_classes_from_files($migrations);
-
- foreach ($migrations as $migration)
- {
- if (!in_array($migration, $this->migrations))
- {
- $this->migrations[] = $migration;
- }
- }
-
- if ($check_fulfillable)
- {
- foreach ($this->migrations as $name)
- {
- $unfulfillable = $this->unfulfillable($name);
- if ($unfulfillable !== false)
- {
- throw new \phpbb\db\migration\exception('MIGRATION_NOT_FULFILLABLE', $name, $unfulfillable);
- }
- }
- }
-
- return $this->migrations;
- }
-
- /**
* Creates the migrations table if it does not exist.
* @return null
*/