mirror of
https://github.com/fawney19/Aether.git
synced 2026-09-02 17:30:23 +08:00
Merge remote-tracking branch 'origin/pr/487'
# Conflicts: # crates/aether-data/src/lifecycle/bootstrap/postgres.rs # crates/aether-data/src/lifecycle/migrate/tests.rs # crates/aether-data/src/repository/oauth_providers/postgres.rs # crates/aether-data/src/repository/oauth_providers/sqlite.rs # frontend/src/views/admin/OAuthSettings.vue
This commit is contained in:
@@ -7,7 +7,7 @@ use tracing::info;
|
||||
// Generated by build.rs from schema/bootstrap/postgres.
|
||||
pub(crate) static EMPTY_DATABASE_SNAPSHOT_SQL: &str =
|
||||
include_str!(concat!(env!("OUT_DIR"), "/empty_database_snapshot.sql"));
|
||||
pub(crate) const EMPTY_DATABASE_SNAPSHOT_CUTOFF_VERSION: i64 = 20260519000000;
|
||||
pub(crate) const EMPTY_DATABASE_SNAPSHOT_CUTOFF_VERSION: i64 = 20260519120000;
|
||||
|
||||
const PUBLIC_BASE_TABLE_COUNT_SQL: &str = r#"
|
||||
SELECT COUNT(*)::BIGINT
|
||||
|
||||
@@ -308,6 +308,7 @@ fn empty_database_snapshot_covers_current_cutoff_versions() {
|
||||
20260516000000,
|
||||
20260518000000,
|
||||
20260519000000,
|
||||
20260519120000,
|
||||
]
|
||||
);
|
||||
}
|
||||
@@ -598,7 +599,9 @@ fn mysql_and_sqlite_migrations_include_enabled_incrementals() {
|
||||
20260512090000,
|
||||
20260512110000,
|
||||
20260516000000,
|
||||
20260518000000,
|
||||
20260519000000,
|
||||
20260519120000,
|
||||
]
|
||||
);
|
||||
assert_eq!(
|
||||
@@ -616,7 +619,9 @@ fn mysql_and_sqlite_migrations_include_enabled_incrementals() {
|
||||
20260512090000,
|
||||
20260512110000,
|
||||
20260516000000,
|
||||
20260518000000,
|
||||
20260519000000,
|
||||
20260519120000,
|
||||
]
|
||||
);
|
||||
}
|
||||
@@ -1136,6 +1141,7 @@ fn pending_migrations_from_applied_skips_versions_already_applied() {
|
||||
20260516000000,
|
||||
20260518000000,
|
||||
20260519000000,
|
||||
20260519120000,
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user