Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
frol committed Mar 18, 2014
1 parent 86d57b9 commit 01848a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg2mysql.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ function pg2mysql(&$input, $header=true)
$line=str_replace(" time without time zone"," time",$line);

$line=str_replace(" timestamp DEFAULT now()"," timestamp DEFAULT CURRENT_TIMESTAMP",$line);
$line=preg_replace("/ timestamp( NOT NULL)?(,|$)/",' timestamp DEFAULT 0${1}${2}',$line);
$line=preg_replace("/ timestamp( NOT NULL)?(,|$)/",' timestamp DEFAULT 0${1}${2}',$line);

if(strstr($line,"auto_increment")) {
$field=getfieldname($line);
Expand Down

0 comments on commit 01848a1

Please sign in to comment.