mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11459] Move $supported_dbms to beginning of create schema file
PHPBB3-11459
This commit is contained in:
parent
f30b9dbfba
commit
47825a78ef
2 changed files with 9 additions and 2 deletions
|
@ -12,6 +12,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$schema_path = dirname(__FILE__) . '/../install/schemas/';
|
$schema_path = dirname(__FILE__) . '/../install/schemas/';
|
||||||
|
$supported_dbms = array(
|
||||||
|
'firebird',
|
||||||
|
'mssql',
|
||||||
|
'mysql_40',
|
||||||
|
'mysql_41',
|
||||||
|
'oracle',
|
||||||
|
'postgres',
|
||||||
|
'sqlite',
|
||||||
|
);
|
||||||
|
|
||||||
if (!is_writable($schema_path))
|
if (!is_writable($schema_path))
|
||||||
{
|
{
|
||||||
|
@ -39,7 +48,6 @@ $fp = fopen($schema_path . 'schema.json', 'wb');
|
||||||
fwrite($fp, json_encode($schema_data, JSON_PRETTY_PRINT));
|
fwrite($fp, json_encode($schema_data, JSON_PRETTY_PRINT));
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
||||||
$supported_dbms = array('firebird', 'mssql', 'mysql_40', 'mysql_41', 'oracle', 'postgres', 'sqlite');
|
|
||||||
foreach ($supported_dbms as $dbms)
|
foreach ($supported_dbms as $dbms)
|
||||||
{
|
{
|
||||||
$fp = fopen($schema_path . $dbms . '_schema.sql', 'wb');
|
$fp = fopen($schema_path . $dbms . '_schema.sql', 'wb');
|
||||||
|
|
|
@ -3,4 +3,3 @@
|
||||||
# To change the contents of this file, edit
|
# To change the contents of this file, edit
|
||||||
# phpBB/develop/create_schema_files.php and
|
# phpBB/develop/create_schema_files.php and
|
||||||
# run it.
|
# run it.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue