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() {
var (
accountUUID uuid.UUID
key string
value []byte
username string
key string
value []byte
)
err = rows.Scan(&accountUUID, &key, &value)
err = rows.Scan(&username, &key, &value)
if err != nil {
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 {
return err
}