fix: don't use psql 13 functions

The function GEN_RANDOM_UUID was only introduced to built in postgresql
in version 13, however, the installation guide specifies that version 12
should be sufficient.
This commit is contained in:
Johann150 2023-05-27 11:18:06 +02:00
parent f6381e3227
commit 35e814fab4
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -6,7 +6,7 @@ export class removeFavourites1685126322423 {
WITH "new_clips" AS (
INSERT INTO "clip" ("id", "createdAt", "userId", "name")
SELECT
RIGHT(GEN_RANDOM_UUID()::text, 10),
LEFT(MD5(RANDOM()::text), 10),
NOW(),
"userId",
'⭐'