diff --git a/cmd/signaldctl/cmd/db/migrate.go b/cmd/signaldctl/cmd/db/migrate.go index b3ea5e3..6edb49c 100644 --- a/cmd/signaldctl/cmd/db/migrate.go +++ b/cmd/signaldctl/cmd/db/migrate.go @@ -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 }