未验证 提交 ecc1eae2 编写于 作者: İ İbrahim Ercan 提交者: GitHub

fix: uuid generatiion for mysql fixed (#12787)

上级 7acbb3c8
......@@ -81,7 +81,7 @@ default_batch_size = int(os.environ.get("BATCH_SIZE", 200))
# Add uuids directly using built-in SQL uuid function
add_uuids_by_dialect = {
MySQLDialect: """UPDATE %s SET uuid = UNHEX(REPLACE(uuid(), "-", ""));""",
MySQLDialect: """UPDATE %s SET uuid = UNHEX(REPLACE(CONVERT(UUID() using utf8mb4), '-', ''));""",
PGDialect: """UPDATE %s SET uuid = uuid_in(md5(random()::text || clock_timestamp()::text)::cstring);""",
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册