Project

General

Profile

« Previous | Next » 

Revision 8259

bin/my2pg: Translate inline enum type to CHECK constraint

View differences:

bin/my2pg
24 24
-e 's/ (integer|bigint|bytea|double precision|float)(\([^)]*\))?( unsigned)?/ \1/g' \
25 25
-e 's/ (char)\(0\)/ \1/g' \
26 26
-e 's/ datetime/ timestamp/g' \
27
-e 's/ ("[^"]*") enum(\([^()]*\))/ \1 text CHECK (\1 in \2)/g' \
27 28
"$@"\
28 29
|"$selfDir/my2pg.data"

Also available in: Unified diff