forked from FoundKeyGang/FoundKey
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:
parent
f6381e3227
commit
35e814fab4
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ export class removeFavourites1685126322423 {
|
||||||
WITH "new_clips" AS (
|
WITH "new_clips" AS (
|
||||||
INSERT INTO "clip" ("id", "createdAt", "userId", "name")
|
INSERT INTO "clip" ("id", "createdAt", "userId", "name")
|
||||||
SELECT
|
SELECT
|
||||||
RIGHT(GEN_RANDOM_UUID()::text, 10),
|
LEFT(MD5(RANDOM()::text), 10),
|
||||||
NOW(),
|
NOW(),
|
||||||
"userId",
|
"userId",
|
||||||
'⭐'
|
'⭐'
|
||||||
|
|
Loading…
Reference in a new issue