mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 07:16:58 +02:00
Set the default uuid value to use gen_random_uuid
pgloader uses `uuid_generate_v4` which requires loading the `uuid-ossp` extension into the database. Since version 13, Postgres has supported `gen_random_uuid`, which does not. This just changes the default value for UUIDs to `gen_random_uuid` instead of `uuid_generate_v4`.
This commit is contained in:
parent
70f3557670
commit
d2d69f9532
@ -144,7 +144,7 @@
|
|||||||
'((:null . "NULL")
|
'((:null . "NULL")
|
||||||
(:current-date . "CURRENT_DATE")
|
(:current-date . "CURRENT_DATE")
|
||||||
(:current-timestamp . "CURRENT_TIMESTAMP")
|
(:current-timestamp . "CURRENT_TIMESTAMP")
|
||||||
(:generate-uuid . "uuid_generate_v4()"))
|
(:generate-uuid . "gen_random_uuid()"))
|
||||||
"Common normalized default values and their PostgreSQL spelling.")
|
"Common normalized default values and their PostgreSQL spelling.")
|
||||||
|
|
||||||
(defmethod format-default-value ((column column) &key (stream nil))
|
(defmethod format-default-value ((column column) &key (stream nil))
|
||||||
|
Loading…
Reference in New Issue
Block a user