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

[ticket/12870] Create the migrations table with a method in the migrator

PHPBB3-12870
This commit is contained in:
Tristan Darricau
2014-07-27 11:08:13 +02:00
parent e4a829071e
commit a8e81b6e9f
5 changed files with 29 additions and 47 deletions

View File

@@ -78,8 +78,11 @@ class manager
$this->extensions = array();
// Do not try to load any extensions if the extension table
// does not exist. (The table is crated by the firsts migrations).
if (version_compare($this->config['version'], '3.1.0-dev', '<'))
// does not exist or when installing or updating.
// Note: database updater invokes this code, and in 3.0
// there is no extension table therefore the rest of this function
// fails
if (defined('IN_INSTALL') || version_compare($this->config['version'], '3.1.0-dev', '<'))
{
return;
}