mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10413] Make create_schema_files usable
PHPBB3-10413
This commit is contained in:
parent
4e69fe6859
commit
7fa14e654a
1 changed files with 2 additions and 6 deletions
|
@ -12,11 +12,7 @@
|
||||||
* If you overwrite the original schema files please make sure you save the file with UNIX linefeeds.
|
* If you overwrite the original schema files please make sure you save the file with UNIX linefeeds.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
die("Please read the first lines of this script for instructions on how to enable it");
|
$schema_path = dirname(__FILE__).'/../install/schemas/';
|
||||||
|
|
||||||
@set_time_limit(0);
|
|
||||||
|
|
||||||
$schema_path = './../install/schemas/';
|
|
||||||
|
|
||||||
if (!is_writable($schema_path))
|
if (!is_writable($schema_path))
|
||||||
{
|
{
|
||||||
|
@ -242,7 +238,7 @@ $supported_dbms = array('firebird', 'mssql', 'mysql_40', 'mysql_41', 'oracle', '
|
||||||
|
|
||||||
foreach ($supported_dbms as $dbms)
|
foreach ($supported_dbms as $dbms)
|
||||||
{
|
{
|
||||||
$fp = fopen($schema_path . '_' . $dbms . '_schema.sql', 'wt');
|
$fp = fopen($schema_path . '' . $dbms . '_schema.sql', 'wt');
|
||||||
|
|
||||||
$line = '';
|
$line = '';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue