We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e05e81 commit 3466970Copy full SHA for 3466970
mysql2sqlite
@@ -183,7 +183,8 @@ aInc == 1 && /PRIMARY KEY|primary key/ { next }
183
# BEGIN
184
# UPDATE Package SET LastUpdate = CURRENT_TIMESTAMP WHERE ActionId = old.ActionId;
185
# END
186
- gsub( /ON UPDATE CURRENT_TIMESTAMP|on update current_timestamp/, "" )
+ gsub( /ON UPDATE (CURRENT_TIMESTAMP|current_timestamp)(\(\))?/, "" )
187
+ gsub( /(DEFAULT|default) (CURRENT_TIMESTAMP|current_timestamp)(\(\))?/, "DEFAULT current_timestamp")
188
gsub( /(COLLATE|collate) [^ ]+ /, "" )
189
gsub( /(ENUM|enum)[^)]+\)/, "text " )
190
gsub( /(SET|set)\([^)]+\)/, "text " )
0 commit comments