- π Added a new `FastORM.get_primary_keys_sql_fields()` method to get the sql column name(s) of the primary key(s).
- β οΈ Replaced the `on_conflict_upsert_field_list` parameter of `FastORM.insert(β¦)` and `FastORM.build_sql_insert(β¦)` with a new `upsert_on_conflict`.
- It is mostly the same, but the variable name speaks better what it does. That is, specifying the fields which it would conflict on.
- Migration:
- `on_conflict_upsert_field_list=['some_field', 'another_field']` is now `upsert_on_conflict=['some_field', 'another_field']`.
- `on_conflict_upsert_field_list=None` is now `upsert_on_conflict=False`.
- π Also there's a new case now:
- `upsert_on_conflict=True`. Here it will now automatically use the primary keys to conflict on those.
- π¨ Fixed `FastORM.insert(β¦)` and `FastORM.build_sql_insert(β¦)` that a key listed in the conflict list for UPSERTs would not be excluded from the UPDATE part of the UPSERT, the value overwriting part.