Revision 8259
Added by Aaron Marcuse-Kubitza over 11 years ago
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
bin/my2pg: Translate inline enum type to CHECK constraint