-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a52d34
commit 950b88d
Showing
5 changed files
with
102 additions
and
4 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
prisma/migrations/20241209101954_add_role_mentions_to_message/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,17 @@ | ||
-- CreateTable | ||
CREATE TABLE "_role_mentioned_messages" ( | ||
"A" TEXT NOT NULL, | ||
"B" TEXT NOT NULL | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "_role_mentioned_messages_AB_unique" ON "_role_mentioned_messages"("A", "B"); | ||
|
||
-- CreateIndex | ||
CREATE INDEX "_role_mentioned_messages_B_index" ON "_role_mentioned_messages"("B"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "_role_mentioned_messages" ADD CONSTRAINT "_role_mentioned_messages_A_fkey" FOREIGN KEY ("A") REFERENCES "Message"("id") ON DELETE CASCADE ON UPDATE CASCADE; | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "_role_mentioned_messages" ADD CONSTRAINT "_role_mentioned_messages_B_fkey" FOREIGN KEY ("B") REFERENCES "ServerRole"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
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
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
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
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