Skip to content

Commit deef5a3

Browse files
authored
Merge pull request #30 from velog-io/fix/notification-schema
fix: read_at wrong data type
2 parents 0a5be60 + d5f0b03 commit deef5a3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "notifications" ALTER COLUMN "read_at" SET DATA TYPE TIMESTAMPTZ(6);

packages/velog-prisma/prisma/schema.prisma

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ model Notification {
628628
action Json @default("{}")
629629
action_id String? @db.Uuid
630630
is_read Boolean @default(false)
631-
read_at DateTime?
631+
read_at DateTime? @db.Timestamptz(6)
632632
is_deleted Boolean @default(false)
633633
is_noticed Boolean @default(false)
634634
created_at DateTime @default(now()) @db.Timestamptz(6)

0 commit comments

Comments
 (0)