Skip to content

Commit

Permalink
fix(introspection-warnings): Change wording (#4834)
Browse files Browse the repository at this point in the history
  • Loading branch information
janpio committed May 14, 2024
1 parent e9771e6 commit 94b459e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion schema-engine/connectors/schema-connector/src/warnings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ impl fmt::Display for Warnings {
)?;

render_warnings(
"These items were renamed due to their names being duplicates in the Prisma Schema Language:",
"These items were renamed due to their names being duplicates in the Prisma schema:",
&self.duplicate_names,
f,
)?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ async fn multiple_schemas_w_duplicate_table_names_are_introspected(api: &mut Tes
let expected = expect![[r#"
*** WARNING ***
These items were renamed due to their names being duplicates in the Prisma Schema Language:
These items were renamed due to their names being duplicates in the Prisma schema:
- Type: "model", name: "first_A"
- Type: "model", name: "second_A"
"#]];
Expand Down Expand Up @@ -257,7 +257,7 @@ async fn multiple_schemas_w_duplicate_sanitized_table_names_are_introspected(api
let expected = expect![[r#"
*** WARNING ***
These items were renamed due to their names being duplicates in the Prisma Schema Language:
These items were renamed due to their names being duplicates in the Prisma schema:
- Type: "model", name: "first_2A"
- Type: "model", name: "second_1A"
"#]];
Expand Down Expand Up @@ -539,7 +539,7 @@ async fn multiple_schemas_w_duplicate_enums_are_introspected(api: &mut TestApi)
let expected = expect![[r#"
*** WARNING ***
These items were renamed due to their names being duplicates in the Prisma Schema Language:
These items were renamed due to their names being duplicates in the Prisma schema:
- Type: "enum", name: "first_HappyMood"
- Type: "enum", name: "second_HappyMood"
- Type: "model", name: "first_HappyPerson"
Expand Down Expand Up @@ -667,7 +667,7 @@ async fn multiple_schemas_w_duplicate_models_are_reintrospected_never_renamed(ap
let expected = expect![[r#"
*** WARNING ***
These items were renamed due to their names being duplicates in the Prisma Schema Language:
These items were renamed due to their names being duplicates in the Prisma schema:
- Type: "model", name: "second_HappyPerson"
"#]];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ async fn dupes_are_renamed(api: &mut TestApi) -> TestResult {
The following views were ignored as they do not have a valid unique identifier or id. This is currently not supported by Prisma Client. Please refer to the documentation on defining unique identifiers in views: https://pris.ly/d/view-identifiers
- "public_A"
These items were renamed due to their names being duplicates in the Prisma Schema Language:
These items were renamed due to their names being duplicates in the Prisma schema:
- Type: "model", name: "private_A"
- Type: "view", name: "public_A"
"#]];
Expand Down

0 comments on commit 94b459e

Please sign in to comment.