Project

General

Profile

« Previous | Next » 

Revision 8942

bin/my2pg: remove any () after text

View differences:

my2pg
21 21
-e 's/ (tinytext|mediumtext|longtext)/ text/g' \
22 22
-e 's/ (int|mediumint|smallint|tinyint)([ (])/ integer\2/g' \
23 23
-e 's/ double/ double precision/g' \
24
-e 's/ (integer|bigint|bytea|double precision|float)(\([^)]*\))?( unsigned)?/ \1/g' \
24
-e 's/ (integer|bigint|bytea|double precision|float|text)(\([^)]*\))?( unsigned)?/ \1/g' \
25 25
-e 's/ (char)\(0\)/ \1/g' \
26 26
-e 's/ datetime/ timestamp/g' \
27 27
-e 's/ ("[^"]*") enum(\([^()]*\))/ \1 text CHECK (\1 in \2)/g' \

Also available in: Unified diff