1 |
532
|
aaronmk
|
"PostgreSQL","MySQL","Comments"
|
2 |
537
|
aaronmk
|
"^--(?=\S)","\g<0> ",
|
3 |
561
|
aaronmk
|
"""([^""]*?)""","`\1`",
|
4 |
574
|
aaronmk
|
"(?<=DEFAULT )(\d+|'[^']*')::\w+(?: \w+)*","\1",
|
5 |
|
|
"(\d+|'[^']*')::(\w+(?: \w+)*)","CAST(\1 AS \2)",
|
6 |
534
|
aaronmk
|
"\bserial( NOT NULL\b)?","int(11)\1 AUTO_INCREMENT",
|
7 |
532
|
aaronmk
|
"Integer","int(11)",
|
8 |
|
|
"Boolean","int(1)",
|
9 |
537
|
aaronmk
|
" with time zone\b","",
|
10 |
|
|
"fulltext","\g<0>__"
|
11 |
598
|
aaronmk
|
"\btimestamp\b(?: with time zone\b)?(?! NOT NULL\b)","\g<0> NULL"
|