-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ユーザーモデルのemailフィールドを必須に変更し、マイグレーションを追加しました (#550)
- Loading branch information
Showing
8 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -28,6 +28,7 @@ describe("translate関数の単体テスト (Gemini呼び出しのみモック)" | |
handle: "testuser", | ||
name: "testuser", | ||
image: "testuser", | ||
email: "[email protected]", | ||
}, | ||
}); | ||
userId = user.id; | ||
|
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 |
---|---|---|
|
@@ -23,6 +23,7 @@ describe("UserProfile", () => { | |
name: "Test User", | ||
image: "https://example.com/image.jpg", | ||
profile: "This is a test profile", | ||
email: "[email protected]", | ||
pages: { | ||
create: [ | ||
{ | ||
|
@@ -72,6 +73,7 @@ describe("UserProfile", () => { | |
name: "Test User2", | ||
image: "https://example.com/image2.jpg", | ||
profile: "This is a test profile2", | ||
email: "[email protected]", | ||
}, | ||
}); | ||
testUser = createdUser; | ||
|
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 |
---|---|---|
|
@@ -56,6 +56,7 @@ describe("EditPage", () => { | |
name: "Test User", | ||
image: "https://example.com/image.jpg", | ||
profile: "This is a test profile", | ||
email: "[email protected]", | ||
pages: { | ||
create: [ | ||
{ | ||
|
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 |
---|---|---|
|
@@ -18,6 +18,7 @@ describe("processHtmlContent", () => { | |
handle: "htmltester", | ||
name: "htmltester", | ||
image: "htmltester", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
@@ -80,6 +81,7 @@ describe("processHtmlContent", () => { | |
handle: "htmleditor", | ||
name: "htmleditor", | ||
image: "htmleditor", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
@@ -175,6 +177,7 @@ describe("processHtmlContent", () => { | |
handle: "titleduplicateuser", | ||
name: "titleduplicateuser", | ||
image: "titleduplicateuser", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
@@ -253,6 +256,7 @@ describe("processHtmlContent", () => { | |
handle: "noedit", | ||
name: "noedit", | ||
image: "noedit", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
@@ -315,6 +319,7 @@ describe("processHtmlContent", () => { | |
handle: "imagetester", | ||
name: "imagetester", | ||
image: "imagetester", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
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 |
---|---|---|
|
@@ -14,6 +14,7 @@ describe("toggleLike 実際のDB統合テスト", () => { | |
name: "Test User", | ||
image: "https://example.com/image.jpg", | ||
profile: "This is a test profile", | ||
email: "[email protected]", | ||
pages: { | ||
create: [ | ||
{ | ||
|
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,8 @@ | ||
/* | ||
Warnings: | ||
- Made the column `email` on table `users` required. This step will fail if there are existing NULL values in that column. | ||
*/ | ||
-- AlterTable | ||
ALTER TABLE "users" ALTER COLUMN "email" SET NOT NULL; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ This is another test. | |
handle: "test", | ||
name: "test", | ||
image: "test", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
@@ -95,6 +96,7 @@ This is another line. | |
handle: "editor", | ||
name: "editor", | ||
image: "editor", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
@@ -210,6 +212,7 @@ new line | |
handle: "variety", | ||
name: "variety", | ||
image: "variety", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|
@@ -281,6 +284,7 @@ new line | |
handle: "variety", | ||
name: "variety", | ||
image: "variety", | ||
email: "[email protected]", | ||
}, | ||
update: {}, | ||
}); | ||
|