Project

General

Profile

« Previous | Next » 

Revision 7693

my2pg: Translate binary to bytea

View differences:

bin/my2pg
19 19
-e "s/\/\*.* (SET NAMES )([0-9A-Za-z_]+) \*\/;/\1'\2';/" \
20 20
-e 's/ (CHARACTER SET|COLLATE) [0-9A-Za-z_]+//g' \
21 21
-e "s/ COMMENT '[^']*'//g" \
22
-e 's/ blob/ bytea/g' \
22
-e 's/ (binary|blob)/ bytea/g' \
23 23
-e 's/ longtext/ text/g' \
24 24
-e 's/ (int|mediumint|smallint|tinyint)([ (])/ integer\2/g' \
25 25
-e 's/ double/ double precision/g' \

Also available in: Unified diff