Skip to content

Commit

Permalink
push_subscriptionsのendpointの最大長を255から2048に
Browse files Browse the repository at this point in the history
  • Loading branch information
kgtkr committed Jan 27, 2024
1 parent 67e3fef commit 3e49fe1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
Warnings:
- The primary key for the `push_subscriptions` table will be changed. If it partially fails, the table could be left without primary key constraint.
*/
-- AlterTable
ALTER TABLE "push_subscriptions" DROP CONSTRAINT "push_subscriptions_pkey",
ALTER COLUMN "endpoint" SET DATA TYPE VARCHAR(2048),
ADD CONSTRAINT "push_subscriptions_pkey" PRIMARY KEY ("user_id", "endpoint");
2 changes: 1 addition & 1 deletion packages/server/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ model TopicTag {

model PushSubscriptions {
userId String @map("user_id") @db.VarChar(64)
endpoint String @db.VarChar(255)
endpoint String @db.VarChar(2048)
p256dh String @db.VarChar(255)
auth String @db.VarChar(255)
Expand Down

0 comments on commit 3e49fe1

Please sign in to comment.