pending account data table uses string account identifier not uuid
This commit is contained in:
parent
56cc98de30
commit
21420e0d77
1 changed files with 5 additions and 5 deletions
|
@ -385,15 +385,15 @@ func movePendingAccountData(source *sql.DB, dest *sql.DB) error {
|
|||
|
||||
for rows.Next() {
|
||||
var (
|
||||
accountUUID uuid.UUID
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue