pending account data table uses string account identifier not uuid

This commit is contained in:
finn 2022-03-02 13:10:41 -08:00
parent 56cc98de30
commit 21420e0d77

View file

@ -385,15 +385,15 @@ func movePendingAccountData(source *sql.DB, dest *sql.DB) error {
for rows.Next() { for rows.Next() {
var ( var (
accountUUID uuid.UUID username string
key string key string
value []byte value []byte
) )
err = rows.Scan(&accountUUID, &key, &value) err = rows.Scan(&username, &key, &value)
if err != nil { if err != nil {
return err return err
} }
_, err = dest.Exec("INSERT INTO signald_pending_account_data (username, key, value) VALUES ($1, $2, $3)", accountUUID, key, value) _, err = dest.Exec("INSERT INTO signald_pending_account_data (username, key, value) VALUES ($1, $2, $3)", username, key, value)
if err != nil { if err != nil {
return err return err
} }