Project

General

Profile

« Previous | Next » 

Revision 5885

my2pg: Also remove any CHARACTER SET modifier on a column definition

View differences:

bin/my2pg
12 12
sed \
13 13
-e 's/^  KEY "([^"]*)" \([^)]*\)/  "\1_index" boolean/' \
14 14
-e "s/\/\*.* (SET NAMES )([0-9A-Za-z_]+) \*\/;/\1'\2';/" \
15
-e 's/ CHARACTER SET [0-9A-Za-z_]+//g' \
15 16
-e 's/ longtext/ text/g' \
16 17
-e 's/ (int|smallint|tinyint)([ (])/ integer\2/g' \
17 18
-e 's/ double/ double precision/g' \

Also available in: Unified diff