r34538 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34537‎ | r34538 | r34539 >
Date:22:33, 9 May 2008
Author:nad
Status:old
Tags:
Comment:
tidy up generated tables.sql
Modified paths:
  • /trunk/phase3/includes/DatabaseSqlite.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DatabaseSqlite.php
@@ -354,6 +354,10 @@
355355 $sql = str_replace(' unsigned','',$sql);
356356 $sql = str_replace(' int ',' INTEGER ',$sql);
357357 $sql = str_replace('NOT NULL','',$sql);
 358+
 359+ # Tidy up and write file
 360+ $sql = preg_replace('/^\s*^/m','',$sql); # Remove empty lines
 361+ $sql = preg_replace('/;$/m',";\n",$sql); # Separate each statement with an empty line
358362 file_put_contents($sqlite_tmpl,$sql);
359363 }
360364

Status & tagging log