1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/12963] Load extensions migrations from /migration

PHPBB3-12963
This commit is contained in:
Tristan Darricau
2014-09-10 12:08:13 +02:00
parent ff872a7970
commit 72ee4b3a7c
3 changed files with 23 additions and 4 deletions

View File

@@ -117,8 +117,17 @@ class migrate extends \phpbb\console\command\command
$migrations = $this->extension_manager
->get_finder()
->core_path('phpbb/db/migration/data/')
->extension_directory('/migration')
->get_classes();
// @deprecated to be removed in 3.2 final
$migrations_deprecated = $this->extension_manager
->get_finder()
->extension_directory('/migrations')
->get_classes();
$migrations = array_merge($migrations, $migrations_deprecated);
$this->migrator->set_migrations($migrations);
}