Skip to content

Commit

Permalink
i forgot to add the new producer kind to the db
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Aug 20, 2024
1 parent ceefa2e commit f1b3b51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nexus/db-model/src/schema_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::collections::BTreeMap;
///
/// This must be updated when you change the database schema. Refer to
/// schema/crdb/README.adoc in the root of this repository for details.
pub const SCHEMA_VERSION: SemverVersion = SemverVersion::new(87, 0, 0);
pub const SCHEMA_VERSION: SemverVersion = SemverVersion::new(88, 0, 0);

/// List of all past database schema versions, in *reverse* order
///
Expand All @@ -29,6 +29,7 @@ static KNOWN_VERSIONS: Lazy<Vec<KnownVersion>> = Lazy::new(|| {
// | leaving the first copy as an example for the next person.
// v
// KnownVersion::new(next_int, "unique-dirname-with-the-sql-files"),
KnownVersion::new(88, "add-management-gateway-producer-kind"),
KnownVersion::new(87, "add-clickhouse-server-enum-variants"),
KnownVersion::new(86, "snapshot-replacement"),
KnownVersion::new(85, "add-migrations-by-time-created-index"),
Expand Down
2 changes: 2 additions & 0 deletions schema/crdb/add-management-gateway-producer-kind/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TYPE omicron.public.producer_kind
ADD VALUE IF NOT EXISTS 'management_gateway' AFTER 'instance';
2 changes: 2 additions & 0 deletions schema/crdb/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,8 @@ CREATE TYPE IF NOT EXISTS omicron.public.producer_kind AS ENUM (
'service',
-- A Propolis VMM for an instance in the omicron.public.instance table
'instance'
-- A management gateway service on a scrimlet.
'management_gateway'
);

/*
Expand Down

0 comments on commit f1b3b51

Please sign in to comment.