fix: make fips compliant by replacing md5 with sha256 in PGDialect

This commit is contained in:
Jackson Kwok 2024-03-27 15:19:01 -04:00 committed by Jackson Kwok
parent be985e9a22
commit f08a6b175b
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def table_has_column(table: str, column: str) -> bool:
uuid_by_dialect = {
MySQLDialect: "UNHEX(REPLACE(CONVERT(UUID() using utf8mb4), '-', ''))",
PGDialect: "uuid_in(md5(random()::text || clock_timestamp()::text)::cstring)",
PGDialect: "uuid_in(sha256(random()::text || clock_timestamp()::text)::cstring)",
}