mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/14056] Keep install schema resources in the install folder
PHPBB3-14056
This commit is contained in:
@@ -87,7 +87,7 @@ class add_default_data extends \phpbb\install\task_base
|
||||
$dbms_info = $this->database_helper->get_available_dbms($dbms);
|
||||
|
||||
// Get schema data from file
|
||||
$sql_query = @file_get_contents($this->phpbb_root_path . 'phpbb/install/schemas/schema_data.sql');
|
||||
$sql_query = @file_get_contents($this->phpbb_root_path . 'install/schemas/schema_data.sql');
|
||||
|
||||
// Clean up SQL
|
||||
$sql_query = $this->replace_dbms_specific_sql($sql_query);
|
||||
|
@@ -144,9 +144,9 @@ class create_schema extends \phpbb\install\task_base
|
||||
$change_prefix = false;
|
||||
|
||||
// Generate database schema
|
||||
if ($this->filesystem->exists($this->phpbb_root_path . 'phpbb/install/schemas/schema.json'))
|
||||
if ($this->filesystem->exists($this->phpbb_root_path . 'install/schemas/schema.json'))
|
||||
{
|
||||
$db_table_schema = @file_get_contents($this->phpbb_root_path . 'phpbb/install/schemas/schema.json');
|
||||
$db_table_schema = @file_get_contents($this->phpbb_root_path . 'install/schemas/schema.json');
|
||||
$db_table_schema = json_decode($db_table_schema, true);
|
||||
$change_prefix = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user