-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
push_subscriptionsのendpointの最大長を255から2048に
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
.../prisma/migrations/20240127072617_push_subscriptions_endpoint_change_length/migration.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters