Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Merged
merged 2 commits into from

2 participants

@libkazz

No description provided.

@athlite athlite merged commit bcfa944 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 7, 2012
  1. @libkazz

    't' to 1

    libkazz authored
  2. @libkazz

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

    libkazz authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  sqlite3-to-mysql
View
3  sqlite3-to-mysql
@@ -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"
Something went wrong with that request. Please try again.