You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
won't mention the prio column in the ON CONFLICT part resulting in no update. However, when upserting like so:
id = Hardware.upsert(prio: hw[:prio]).id
did indeed update the record in the database (back to its default value). Am not sure if this is (a bug/an issue), but thought I would drop this here. Thanks for all the work on the nice Gem!
The text was updated successfully, but these errors were encountered:
We found that when
having a default in the database (here for a table called
hardwares
)┌─────────┬─────────────────┬────────
│ Column │ Type │ Default
├─────────┼─────────────────┼─────────
│ id │ integer │ ...
│ prio │ integer │ 999
having an existing entry in the database with a non default value for
prio
like: 998 with id: 1That upserting like so:
won't mention the
prio
column in theON CONFLICT
part resulting in no update. However, when upserting like so:did indeed update the record in the database (back to its default value). Am not sure if this is (a bug/an issue), but thought I would drop this here. Thanks for all the work on the nice Gem!
The text was updated successfully, but these errors were encountered: