Skip to content

Commit

Permalink
fix: 指摘点の修正migration
Browse files Browse the repository at this point in the history
  • Loading branch information
saka-naname committed Jan 4, 2025
1 parent e486477 commit c567eb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- AlterTable
ALTER TABLE "ChannelMember" ALTER COLUMN "lastAccessedAt" SET DEFAULT CURRENT_TIMESTAMP;

-- AlterTable
ALTER TABLE "WorkspaceMember" ALTER COLUMN "leaveDate" DROP NOT NULL;
4 changes: 2 additions & 2 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ model WorkspaceMember {
workspace Workspace @relation(fields: [workspaceId], references: [id])
role String
joinDate DateTime @default(now())
leaveDate DateTime
leaveDate DateTime?
}

model Channel {
Expand Down Expand Up @@ -121,7 +121,7 @@ model ChannelMember {
channel Channel @relation(fields: [channelId], references: [id])
role ChannelMemberRole
joinDate DateTime @default(now())
lastAccessedAt DateTime
lastAccessedAt DateTime @default(now())
@@id([channelId, userId])
}
Expand Down

0 comments on commit c567eb6

Please sign in to comment.