mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
Merge pull request #3 from nickvergessen/ticket/naderman/11700
Ticket/naderman/11700
This commit is contained in:
commit
3209d3c69a
2 changed files with 7 additions and 2 deletions
|
@ -1179,7 +1179,7 @@ class install_install extends module
|
|||
// Ok tables have been built, let's fill in the basic information
|
||||
$sql_query = file_get_contents('schemas/schema_data.sql');
|
||||
|
||||
// Deal with any special comments
|
||||
// Deal with any special comments and characters
|
||||
switch ($data['dbms'])
|
||||
{
|
||||
case 'mssql':
|
||||
|
@ -1191,6 +1191,11 @@ class install_install extends module
|
|||
case 'postgres':
|
||||
$sql_query = preg_replace('#\# POSTGRES (BEGIN|COMMIT) \##s', '\1; ', $sql_query);
|
||||
break;
|
||||
|
||||
case 'mysql':
|
||||
case 'mysqli':
|
||||
$sql_query = str_replace('\\', '\\\\', $sql_query);
|
||||
break;
|
||||
}
|
||||
|
||||
// Change prefix
|
||||
|
|
|
@ -18,7 +18,7 @@ class style_update_p2 extends \phpbb\db\migration\migration
|
|||
|
||||
static public function depends_on()
|
||||
{
|
||||
return array('\phpbb\db\migration\data0\style_update_p1');
|
||||
return array('\phpbb\db\migration\data\v310\style_update_p1');
|
||||
}
|
||||
|
||||
public function update_schema()
|
||||
|
|
Loading…
Add table
Reference in a new issue