diff --git a/docs/database/query-builder.mdx b/docs/database/query-builder.mdx index dd0024cbd..dfb718f9f 100644 --- a/docs/database/query-builder.mdx +++ b/docs/database/query-builder.mdx @@ -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.