Changeset 634 in code for trunk


Ignore:
Timestamp:
Oct 13, 2021, 6:53:49 AM (4 years ago)
Author:
hubert
Message:

db_postgres: handle both constraints on network updates

Closes: https://todo.sr.ht/~emersion/soju/138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/db_postgres.go

    r620 r634  
    285285                        sasl_external_key, enabled)
    286286                VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14)
    287                 ON CONFLICT ("user", name)
     287                ON CONFLICT
    288288                DO UPDATE SET name = $2, addr = $3, nick = $4, username = $5, realname = $6, pass = $7,
    289289                        connect_commands = $8, sasl_mechanism = $9, sasl_plain_username = $10,
Note: See TracChangeset for help on using the changeset viewer.