Skip to content

DB schema: Remove update variant from database_kind #8268

Open
@jgallagher

Description

@jgallagher

DatasetKind::Update and its associated database enum variant update were added when we thought TUF repo artifacts would be stored on U.2 drives (and therefore need datasets set up by reconfigurator). We've since changed to storing them on the M.2s, and sled-agent sets up the necessary datasets autonomously.

In an #8301 we're removing the DatasetKind::Update Rust variant. However, removing variants from a database variant is an annoying amount of work, so we've punted on this for now in favor of urgency. The practical impact of this should be small: if we read an update value from the database (which should never happen), we'll return a runtime error. If we don't get to this on its own merits, the next time we go through the process of modifying dataset_kind for some other reason, we should prune this variant.

Metadata

Metadata

Assignees

No one assigned

    Labels

    cleanupCode cleanlinessdatabaseRelated to database access

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions