Skip to content

Commit

Permalink
Merge pull request #1 from libkazz/some_fix
Browse files Browse the repository at this point in the history
all 't' to 1, 'f' to 0
  • Loading branch information
tengla committed Nov 8, 2012
2 parents e015748 + 4bf5cd1 commit bcfa944
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlite3-to-mysql
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ sed \
-e 's/"/`/g' \
-e 's/CREATE TABLE \(`\w\+`\)/DROP TABLE IF EXISTS \1;\nCREATE TABLE \1/' \
-e 's/\(CREATE TABLE.*\)\(PRIMARY KEY\) \(AUTOINCREMENT\)\(.*\)\();\)/\1AUTO_INCREMENT\4, PRIMARY KEY(id)\5/' \
-e "s/'f'/0/"
-e "s/'t'/1/g" \
-e "s/'f'/0/g"

0 comments on commit bcfa944

Please sign in to comment.