Skip to content
代码片段 群组 项目
提交 208f99ff 编辑于 作者: Kamil Trzciński's avatar Kamil Trzciński
浏览文件

Fix MySQL migration of CI emails [ci skip]

上级 45593d57
No related branches found
No related tags found
无相关合并请求
......@@ -25,7 +25,11 @@ def down
# This function escapes double-quotes and slash
def escape_text(name)
"REPLACE(REPLACE(#{name}, '\\', '\\\\'), '\"', '\\\"')"
if Gitlab::Database.postgresql?
"REPLACE(REPLACE(#{name}, '\\', '\\\\'), '\"', '\\\"')"
else
"REPLACE(REPLACE(#{name}, '\\\\', '\\\\\\\\'), '\\\"', '\\\\\\\"')"
end
end
# This function returns 0 or 1 for column
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册