From 21420e0d77d29cc13d6dfa540869954b75f30bc5 Mon Sep 17 00:00:00 2001 From: finn Date: Wed, 2 Mar 2022 13:10:41 -0800 Subject: [PATCH] pending account data table uses string account identifier not uuid --- cmd/signaldctl/cmd/db/migrate.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }