1
0
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:
Nathan Guse
2013-01-13 13:23:42 -06:00
parent 5e69e1a761
commit d30a9cb497
2 changed files with 7 additions and 44 deletions

View File

@@ -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
*/