diff --git a/cmd/storage-migrate/main.go b/cmd/storage-migrate/main.go index 496e5f7..84543fc 100644 --- a/cmd/storage-migrate/main.go +++ b/cmd/storage-migrate/main.go @@ -451,6 +451,11 @@ func guardIdentity(db *sql.DB, migrationID, snapID string, srcVersion int) error func businessRows(db *sql.DB) (int64, error) { var total int64 for _, t := range copyOrder { + // Schema setup seeds this singleton before a migration starts. It is + // replaced from the source during copying and is not target business data. + if t == "account_directory_revision" { + continue + } var n int64 if err := db.QueryRow(`SELECT COUNT(*) FROM "` + t + `"`).Scan(&n); err != nil { if strings.Contains(err.Error(), "does not exist") {