Skip to content

Commit

Permalink
fix version number post-rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcolombo committed Jun 5, 2024
1 parent a822463 commit 1d91b71
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 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(70, 0, 0);
pub const SCHEMA_VERSION: SemverVersion = SemverVersion::new(70, 0, 0);

/// List of all past database schema versions, in *reverse* order
///
Expand Down
6 changes: 3 additions & 3 deletions nexus/tests/integration_tests/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ fn after_37_0_1(client: &Client) -> BoxFuture<'_, ()> {
})
}

fn before_69_0_0(client: &Client) -> BoxFuture<'_, ()> {
fn before_70_0_0(client: &Client) -> BoxFuture<'_, ()> {
Box::pin(async move {
client
.batch_execute(&format!(
Expand Down Expand Up @@ -1270,7 +1270,7 @@ fn before_69_0_0(client: &Client) -> BoxFuture<'_, ()> {
})
}

fn after_69_0_0(client: &Client) -> BoxFuture<'_, ()> {
fn after_70_0_0(client: &Client) -> BoxFuture<'_, ()> {
Box::pin(async {
let rows = client
.query("SELECT state FROM instance ORDER BY id", &[])
Expand Down Expand Up @@ -1339,7 +1339,7 @@ fn get_migration_checks() -> BTreeMap<SemverVersion, DataMigrationFns> {
);
map.insert(
SemverVersion(semver::Version::parse("69.0.0").unwrap()),
DataMigrationFns { before: Some(before_69_0_0), after: after_69_0_0 },
DataMigrationFns { before: Some(before_70_0_0), after: after_70_0_0 },
);

map
Expand Down
2 changes: 1 addition & 1 deletion schema/crdb/dbinit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4075,7 +4075,7 @@ INSERT INTO omicron.public.db_metadata (
version,
target_version
) VALUES
(TRUE, NOW(), NOW(), '69.0.0', NULL)
(TRUE, NOW(), NOW(), '70.0.0', NULL)
ON CONFLICT DO NOTHING;

COMMIT;

0 comments on commit 1d91b71

Please sign in to comment.