diff options
author | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-13 13:23:42 -0600 |
---|---|---|
committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-02-06 11:35:55 -0600 |
commit | d30a9cb4971f261e33a4814cc94c8fd218afda91 (patch) | |
tree | 0592266820a2fdd662c7bf2942dbbc157b29773a /phpBB/install/install_install.php | |
parent | 5e69e1a7612a4dbe24620cc5cad33720cb0c2885 (diff) | |
download | forums-d30a9cb4971f261e33a4814cc94c8fd218afda91.tar forums-d30a9cb4971f261e33a4814cc94c8fd218afda91.tar.gz forums-d30a9cb4971f261e33a4814cc94c8fd218afda91.tar.bz2 forums-d30a9cb4971f261e33a4814cc94c8fd218afda91.tar.xz forums-d30a9cb4971f261e33a4814cc94c8fd218afda91.zip |
[feature/migrations] Automatically populate migrations table on install
PHPBB3-9737
Diffstat (limited to 'phpBB/install/install_install.php')
-rw-r--r-- | phpBB/install/install_install.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/phpBB/install/install_install.php b/phpBB/install/install_install.php index 1ab9caee0a..e0eb9e4472 100644 --- a/phpBB/install/install_install.php +++ b/phpBB/install/install_install.php @@ -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 */ |