mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[feature/migrations] Automatically populate migrations table on install
PHPBB3-9737
This commit is contained in:
@@ -114,6 +114,7 @@ class install_install extends module
|
||||
$this->add_bots($mode, $sub);
|
||||
$this->email_admin($mode, $sub);
|
||||
$this->disable_avatars_if_unwritable();
|
||||
$this->populate_migrations($phpbb_container, $phpbb_root_path);
|
||||
|
||||
// Remove the lock file
|
||||
@unlink($phpbb_root_path . 'cache/install_lock');
|
||||
@@ -1880,6 +1881,12 @@ class install_install extends module
|
||||
}
|
||||
}
|
||||
|
||||
function populate_migrations($container, $phpbb_root_path)
|
||||
{
|
||||
$migrator = $container->get('migrator');
|
||||
$migrator->populate_migrations_from_directory($phpbb_root_path . 'includes/db/migration/data/');
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate a list of available mail server authentication methods
|
||||
*/
|
||||
|
Reference in New Issue
Block a user