From 7729ae4ad0bb09256709af37f2998a0949fbad01 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 17 Sep 2014 21:24:33 +0200 Subject: [ticket/13064] Revert "[ticket/13064] Validate the migrations provided to ..." This reverts commit 46a9fe93d797bf7d56fd9b1e204f3c0459270122. PHPBB3-13064 --- phpBB/phpbb/db/migrator.php | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'phpBB/phpbb/db') diff --git a/phpBB/phpbb/db/migrator.php b/phpBB/phpbb/db/migrator.php index 43393a8935..44bea3c5d2 100644 --- a/phpBB/phpbb/db/migrator.php +++ b/phpBB/phpbb/db/migrator.php @@ -129,28 +129,11 @@ class migrator * Sets the list of available migration class names to the given array. * * @param array $class_names An array of migration class names - * @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. * @return null - * @throws \phpbb\db\migration\exception */ - public function set_migrations($class_names, $check_fulfillable = true) + public function set_migrations($class_names) { $this->migrations = $class_names; - - 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); - } - } - } } /** -- cgit v1.2.1