Skip to content

Commit

Permalink
move migration up
Browse files Browse the repository at this point in the history
  • Loading branch information
david-crespo committed Jan 3, 2024
1 parent 06fcc99 commit e02a0e6
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions nexus/db-model/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
use omicron_common::api::external::SemverVersion;

/// The version of the database schema this particular version of Nexus was
/// built against.
///
/// This should be updated whenever the schema is changed. For more details,
/// refer to: schema/crdb/README.adoc
pub const SCHEMA_VERSION: SemverVersion = SemverVersion::new(22, 0, 1);

table! {
disk (id) {
id -> Uuid,
Expand Down Expand Up @@ -1335,13 +1342,6 @@ table! {
}
}

/// The version of the database schema this particular version of Nexus was
/// built against.
///
/// This should be updated whenever the schema is changed. For more details,
/// refer to: schema/crdb/README.adoc
pub const SCHEMA_VERSION: SemverVersion = SemverVersion::new(21, 0, 1);

allow_tables_to_appear_in_same_query!(
system_update,
component_update,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion schema/crdb/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3078,7 +3078,7 @@ INSERT INTO omicron.public.db_metadata (
version,
target_version
) VALUES
( TRUE, NOW(), NOW(), '21.0.1', NULL)
( TRUE, NOW(), NOW(), '22.0.1', NULL)
ON CONFLICT DO NOTHING;

COMMIT;

0 comments on commit e02a0e6

Please sign in to comment.