Created
May 19, 2015 23:33
-
-
Save aguynamedryan/5eccac2b750a0ca9f126 to your computer and use it in GitHub Desktop.
sed script to hastily convert Oracle DDL to PostgreSQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s/VARCHAR2 *([0-9]\+)/TEXT/g | |
s/NUMBER/NUMERIC/g | |
s/LOGGING//g | |
s/MONITORING//g | |
/MODIFY/d | |
/^--/d | |
/USING INDEX/d | |
s/\(.*\)/\L\1/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment