1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/10189] Get rid of $id$ from schema files

PHPBB3-10189
This commit is contained in:
Igor Wiedler
2011-10-14 04:29:28 +02:00
parent 8cf22f5529
commit c3f3435228
8 changed files with 1 additions and 50 deletions

View File

@@ -246,6 +246,7 @@ foreach ($supported_dbms as $dbms)
$line = '';
// Write Header
switch ($dbms)
{
case 'mysql_40':
@@ -272,37 +273,21 @@ foreach ($supported_dbms as $dbms)
break;
}
// Write Header
switch ($dbms)
{
case 'mysql_40':
case 'mysql_41':
$line = "#\n# \$I" . "d: $\n#\n\n";
break;
case 'firebird':
$line = "#\n# \$I" . "d: $\n#\n\n";
$line .= custom_data('firebird') . "\n";
break;
case 'sqlite':
$line = "#\n# \$I" . "d: $\n#\n\n";
$line .= "BEGIN TRANSACTION;\n\n";
break;
case 'mssql':
$line = "/*\n\n \$I" . "d: $\n\n*/\n\n";
// no need to do this, no transaction support for schema changes
//$line .= "BEGIN TRANSACTION\nGO\n\n";
break;
case 'oracle':
$line = "/*\n\n \$I" . "d: $\n\n*/\n\n";
$line .= custom_data('oracle') . "\n";
break;
case 'postgres':
$line = "/*\n\n \$I" . "d: $\n\n*/\n\n";
$line .= "BEGIN;\n\n";
$line .= custom_data('postgres') . "\n";
break;