From 836da9bbf07743224cb5aaf716a2784cc3faf84c Mon Sep 17 00:00:00 2001 From: silverqx Date: Sun, 21 Aug 2022 18:45:51 +0200 Subject: [PATCH] docs fixtypo --- docs/database/query-builder.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.