Skip to content

Commit

Permalink
docs fixtypo
Browse files Browse the repository at this point in the history
  • Loading branch information
silverqx committed Aug 21, 2022
1 parent 07fc218 commit 836da9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/database/query-builder.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ The `upsert` method will insert records that do not exist and update the records
{"price"}
);

In the example above, TinyORM will attempt to insert two records. If a record already exists with the same `departure` and `destination` column values, Laravel will update that record's `price` column.
In the example above, TinyORM will attempt to insert two records. If a record already exists with the same `departure` and `destination` column values, TinyORM will update that record's `price` column.

:::caution
All databases except SQL Server require the columns in the second argument of the `upsert` method to have a "primary" or "unique" index. In addition, the MySQL database driver ignores the second argument of the `upsert` method and always uses the "primary" and "unique" indexes of the table to detect existing records.
Expand Down

0 comments on commit 836da9b

Please sign in to comment.