Browse files

all 't', 'f' to 1, 0

  • Loading branch information...
1 parent 031f8dc commit 4944a4ffae8988ede2624f6e15a1228c1a4445c2 @libkazz committed Nov 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sqlite3-to-mysql
View
4 sqlite3-to-mysql
@@ -8,6 +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/'t'/1/"
--e "s/'f'/0/"
+-e "s/'t'/1/g" \
+-e "s/'f'/0/g"

0 comments on commit 4944a4f

Please sign in to comment.