Skip to content

Commit

Permalink
fix migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
AmyrAhmady committed Sep 26, 2023
1 parent a4f9cd9 commit 1170c5a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ ALTER TABLE "Discord" DROP CONSTRAINT "Discord_userId_fkey";
-- DropForeignKey
ALTER TABLE "GitHub" DROP CONSTRAINT "GitHub_userId_fkey";

-- DropForeignKey
ALTER TABLE "Post" DROP CONSTRAINT "Post_userId_fkey";

-- AddForeignKey
ALTER TABLE "GitHub" ADD CONSTRAINT "GitHub_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
-- RenameIndex
ALTER INDEX "Category_name_key" RENAME TO "Category.name_unique";

-- RenameIndex
ALTER INDEX "Discord_accountId_key" RENAME TO "Discord.accountId_unique";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
-- AlterEnum
ALTER TYPE "AuthMethod" ADD VALUE 'UNDEFINED';

-- RenameIndex
ALTER INDEX "Category.name_unique" RENAME TO "Category_name_key";

-- RenameIndex
ALTER INDEX "Discord.accountId_unique" RENAME TO "Discord_accountId_key";

Expand Down

0 comments on commit 1170c5a

Please sign in to comment.