aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-03-29 10:35:16 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-03-29 11:03:45 +0100
commit47825a78ef0e49aa79f90fb308620e0b6cf37e8f (patch)
tree082e1ce3d0599b63374a91e90458453d3e7752d0 /phpBB/develop
parentf30b9dbfba04ee1fd352d7cd6e4431001b991a6f (diff)
downloadforums-47825a78ef0e49aa79f90fb308620e0b6cf37e8f.tar
forums-47825a78ef0e49aa79f90fb308620e0b6cf37e8f.tar.gz
forums-47825a78ef0e49aa79f90fb308620e0b6cf37e8f.tar.bz2
forums-47825a78ef0e49aa79f90fb308620e0b6cf37e8f.tar.xz
forums-47825a78ef0e49aa79f90fb308620e0b6cf37e8f.zip
[ticket/11459] Move $supported_dbms to beginning of create schema file
PHPBB3-11459
Diffstat (limited to 'phpBB/develop')
-rw-r--r--phpBB/develop/create_schema_files.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php
index 19d4868ec4..8e01b3c286 100644
--- a/phpBB/develop/create_schema_files.php
+++ b/phpBB/develop/create_schema_files.php
@@ -12,6 +12,15 @@
*/
$schema_path = dirname(__FILE__) . '/../install/schemas/';
+$supported_dbms = array(
+ 'firebird',
+ 'mssql',
+ 'mysql_40',
+ 'mysql_41',
+ 'oracle',
+ 'postgres',
+ 'sqlite',
+);
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));
fclose($fp);
-$supported_dbms = array('firebird', 'mssql', 'mysql_40', 'mysql_41', 'oracle', 'postgres', 'sqlite');
foreach ($supported_dbms as $dbms)
{
$fp = fopen($schema_path . $dbms . '_schema.sql', 'wb');