Skip to content

Commit

Permalink
convert all blobs to bytea
Browse files Browse the repository at this point in the history
MySQL has not only blob but also mediumblob, longblob and stuff. Let's catch them all.
  • Loading branch information
machisuji committed Mar 7, 2016
1 parent 994bbdb commit 72352bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db_converter.py
Expand Up @@ -136,7 +136,7 @@ def parse(input_filename, output_filename):
type = "timestamp with time zone"
elif type == "double":
type = "double precision"
elif type == "blob":
elif type.endswith("blob"):
type = "bytea"
elif type.startswith("enum(") or type.startswith("set("):

Expand Down

0 comments on commit 72352bf

Please sign in to comment.