mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-05-04 07:29:30 -05:00
docs fixtypo
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user