add id field calendar-cache (#20578)
This commit is contained in:
1 parent
35d54ff223
commit
1dc5cd4d41
2 files changed
+8
No files matched your search
@@ -0,0 +1,5 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "CalendarCache" ADD COLUMN "id" TEXT;
|
||||||
|
|
||||||
|
-- Update all historical rows (id) to `gen_random_uuid`
|
||||||
|
UPDATE "CalendarCache" SET "id" = gen_random_uuid() WHERE "id" IS NULL;
|
||||||
@@ -1457,6 +1457,9 @@ view BookingTimeStatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
model CalendarCache {
|
model CalendarCache {
|
||||||
|
// To be made required in a followup
|
||||||
|
id String? @default(uuid())
|
||||||
|
|
||||||
// The key would be the unique URL that is requested by the user
|
// The key would be the unique URL that is requested by the user
|
||||||
key String
|
key String
|
||||||
value Json
|
value Json
|
||||||
|
|||||||
Reference in new issue
Block a user