mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 01:10:23 +08:00
fix: avoid management token migration version collision
This commit is contained in:
@@ -7,7 +7,7 @@ use tracing::info;
|
|||||||
// Generated by build.rs from schema/bootstrap/postgres.
|
// Generated by build.rs from schema/bootstrap/postgres.
|
||||||
pub(crate) static EMPTY_DATABASE_SNAPSHOT_SQL: &str =
|
pub(crate) static EMPTY_DATABASE_SNAPSHOT_SQL: &str =
|
||||||
include_str!(concat!(env!("OUT_DIR"), "/empty_database_snapshot.sql"));
|
include_str!(concat!(env!("OUT_DIR"), "/empty_database_snapshot.sql"));
|
||||||
pub(crate) const EMPTY_DATABASE_SNAPSHOT_CUTOFF_VERSION: i64 = 20260509000000;
|
pub(crate) const EMPTY_DATABASE_SNAPSHOT_CUTOFF_VERSION: i64 = 20260510000000;
|
||||||
|
|
||||||
const PUBLIC_BASE_TABLE_COUNT_SQL: &str = r#"
|
const PUBLIC_BASE_TABLE_COUNT_SQL: &str = r#"
|
||||||
SELECT COUNT(*)::BIGINT
|
SELECT COUNT(*)::BIGINT
|
||||||
|
|||||||
@@ -294,7 +294,7 @@ fn empty_database_snapshot_covers_current_cutoff_versions() {
|
|||||||
20260507000000,
|
20260507000000,
|
||||||
20260507120000,
|
20260507120000,
|
||||||
20260508000000,
|
20260508000000,
|
||||||
20260509000000,
|
20260510000000,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -399,7 +399,7 @@ fn provider_api_keys_api_formats_remains_nullable_in_baselines() {
|
|||||||
fn management_tokens_json_columns_are_normalized_to_jsonb_in_postgres_schema_paths() {
|
fn management_tokens_json_columns_are_normalized_to_jsonb_in_postgres_schema_paths() {
|
||||||
let normalization_migration = POSTGRES_MIGRATOR
|
let normalization_migration = POSTGRES_MIGRATOR
|
||||||
.iter()
|
.iter()
|
||||||
.find(|migration| migration.version == 20260509000000)
|
.find(|migration| migration.version == 20260510000000)
|
||||||
.expect("management token jsonb normalization migration should be embedded");
|
.expect("management token jsonb normalization migration should be embedded");
|
||||||
assert!(normalization_migration
|
assert!(normalization_migration
|
||||||
.sql
|
.sql
|
||||||
@@ -1061,7 +1061,7 @@ fn pending_migrations_from_applied_skips_versions_already_applied() {
|
|||||||
20260507000000,
|
20260507000000,
|
||||||
20260507120000,
|
20260507120000,
|
||||||
20260508000000,
|
20260508000000,
|
||||||
20260509000000,
|
20260510000000,
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user