Skip to content

Commit

Permalink
test: fix sample test
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Oct 28, 2023
1 parent 2a91d49 commit 685690b
Show file tree
Hide file tree
Showing 29 changed files with 721 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ CREATE TABLE "Concert" (
CREATE INDEX "Singer_lastName_idx" ON "Singer"("lastName");

-- CreateIndex
CREATE UNIQUE INDEX "Album_id_title_idx" ON "Track"("id", "title");
CREATE UNIQUE INDEX "Album_singerId_title_idx" ON "Album"("singerId", "title");

-- CreateIndex
CREATE UNIQUE INDEX "Track_id_title_idx" ON "Track"("id", "title");
Expand Down
2 changes: 1 addition & 1 deletion samples/nodejs/prisma/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ model Album {
singerId String
tracks Track[]
@@unique([id, title])
@@unique([singer, title])
}

model Track {
Expand Down
Loading

0 comments on commit 685690b

Please sign in to comment.