mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 17:28:56 +00:00
[ticket/12963] Fix the list of migrations in database_update.php
Without this patch the finder grab all the class available in the ext
folder and not only the migrations. This change is backported for the one
done before to the cli tool db:migrate. (see the commit
3420f8f320
)
PHPBB3-12963
This commit is contained in:
parent
297ab5c526
commit
a093c28d1a
1 changed files with 10 additions and 0 deletions
|
@ -181,7 +181,17 @@ $finder = $phpbb_extension_manager->get_finder();
|
|||
|
||||
$migrations = $finder
|
||||
->core_path('phpbb/db/migration/data/')
|
||||
->extension_directory('/migrations')
|
||||
->get_classes();
|
||||
|
||||
// @deprecated to be removed in 3.2 final
|
||||
$migrations_deprecated = $phpbb_extension_manager
|
||||
->get_finder()
|
||||
->extension_directory('/migrations')
|
||||
->get_classes();
|
||||
|
||||
$migrations = array_merge($migrations, $migrations_deprecated);
|
||||
|
||||
$migrator->set_migrations($migrations);
|
||||
|
||||
// What is a safe limit of execution time? Half the max execution time should be safe.
|
||||
|
|
Loading…
Add table
Reference in a new issue