docs fixtypo

This commit is contained in:
silverqx
2022-08-21 18:45:51 +02:00
parent 07fc218733
commit 836da9bbf0
+1 -1
View File
@@ -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.