Skip to content

Commit

Permalink
0005907: Postgres support for ddl table creations with a default
Browse files Browse the repository at this point in the history
function on a GUID from MSSQL
  • Loading branch information
joshahicks committed Jun 30, 2023
1 parent 4288cf4 commit cd74b7d
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -181,6 +181,8 @@ public String mapDefaultValue(Object defaultValue, Column column) {
newValue = "TIMEZONE('utc', CURRENT_TIMESTAMP(0))";
}
}
} else if (newValue != null && newValue.equals("newid()")) {
newValue = "gen_random_uuid()";
}
return newValue;
}
Expand Down

0 comments on commit cd74b7d

Please sign in to comment.