diff options
author | Igor Wiedler <igor@wiedler.ch> | 2011-10-14 03:41:02 +0200 |
---|---|---|
committer | Igor Wiedler <igor@wiedler.ch> | 2011-10-14 03:41:02 +0200 |
commit | 8cf22f552935417911306cb2830d7522791c9098 (patch) | |
tree | 0edbf3962d6fcd0448c8670e75edf160f85aa72d /phpBB/develop | |
parent | d16b160d5ce96813ea8c249382175b364643be0c (diff) | |
download | forums-8cf22f552935417911306cb2830d7522791c9098.tar forums-8cf22f552935417911306cb2830d7522791c9098.tar.gz forums-8cf22f552935417911306cb2830d7522791c9098.tar.bz2 forums-8cf22f552935417911306cb2830d7522791c9098.tar.xz forums-8cf22f552935417911306cb2830d7522791c9098.zip |
[ticket/10189] Add "automatically generated" comment into schema-files
PHPBB3-10189
Diffstat (limited to 'phpBB/develop')
-rw-r--r-- | phpBB/develop/create_schema_files.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/phpBB/develop/create_schema_files.php b/phpBB/develop/create_schema_files.php index efe8837b26..05acf7177d 100644 --- a/phpBB/develop/create_schema_files.php +++ b/phpBB/develop/create_schema_files.php @@ -246,6 +246,32 @@ foreach ($supported_dbms as $dbms) $line = ''; + switch ($dbms) + { + case 'mysql_40': + case 'mysql_41': + case 'firebird': + case 'sqlite': + fwrite($fp, "# DO NOT EDIT THIS FILE, IT IS GENERATED\n"); + fwrite($fp, "#\n"); + fwrite($fp, "# To change the contents of this file, edit\n"); + fwrite($fp, "# phpBB/develop/create_schema_files.php and\n"); + fwrite($fp, "# run it.\n"); + break; + + case 'mssql': + case 'oracle': + case 'postgres': + fwrite($fp, "/*\n"); + fwrite($fp, " * DO NOT EDIT THIS FILE, IT IS GENERATED\n"); + fwrite($fp, " *\n"); + fwrite($fp, " * To change the contents of this file, edit\n"); + fwrite($fp, " * phpBB/develop/create_schema_files.php and\n"); + fwrite($fp, " * run it.\n"); + fwrite($fp, " */\n\n"); + break; + } + // Write Header switch ($dbms) { |