From 313a637982b954a586dab77da3dab2834c63ddc7 Mon Sep 17 00:00:00 2001 From: elky Date: Fri, 4 Sep 2026 11:47:05 +0800 Subject: [PATCH] refactor(data): drop sqlite no-op migration --- .../20260827040000_expand_proxy_password_ciphertext.sql | 2 -- crates/aether-data/runtime/src/lifecycle/bootstrap/postgres.rs | 3 +-- crates/aether-data/runtime/src/lifecycle/migrate/tests.rs | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 crates/aether-data/adapters/sqlite/migrations/20260827040000_expand_proxy_password_ciphertext.sql diff --git a/crates/aether-data/adapters/sqlite/migrations/20260827040000_expand_proxy_password_ciphertext.sql b/crates/aether-data/adapters/sqlite/migrations/20260827040000_expand_proxy_password_ciphertext.sql deleted file mode 100644 index 8afb573d5..000000000 --- a/crates/aether-data/adapters/sqlite/migrations/20260827040000_expand_proxy_password_ciphertext.sql +++ /dev/null @@ -1,2 +0,0 @@ --- SQLite proxy_password is already TEXT; keep migration ordering aligned across drivers. -SELECT 1; diff --git a/crates/aether-data/runtime/src/lifecycle/bootstrap/postgres.rs b/crates/aether-data/runtime/src/lifecycle/bootstrap/postgres.rs index ea405239a..e5d5003c2 100644 --- a/crates/aether-data/runtime/src/lifecycle/bootstrap/postgres.rs +++ b/crates/aether-data/runtime/src/lifecycle/bootstrap/postgres.rs @@ -8,8 +8,7 @@ use tracing::info; pub(crate) static EMPTY_DATABASE_SNAPSHOT_SQL: &str = include_str!(concat!(env!("OUT_DIR"), "/empty_database_snapshot.sql")); // Keep post-snapshot migrations executable on a fresh database so required -// schema changes still run. Compatibility migrations after this frontier are -// explicit no-ops and must not rewrite legacy rows. +// schema changes after this frontier still run. pub(crate) const EMPTY_DATABASE_SNAPSHOT_CUTOFF_VERSION: i64 = 20260821130000; const PUBLIC_BASE_TABLE_COUNT_SQL: &str = r#" diff --git a/crates/aether-data/runtime/src/lifecycle/migrate/tests.rs b/crates/aether-data/runtime/src/lifecycle/migrate/tests.rs index 19413908a..8cdb67fb2 100644 --- a/crates/aether-data/runtime/src/lifecycle/migrate/tests.rs +++ b/crates/aether-data/runtime/src/lifecycle/migrate/tests.rs @@ -1271,7 +1271,6 @@ fn mysql_and_sqlite_migrations_include_enabled_incrementals() { 20260821000000, 20260821120000, 20260821130000, - 20260827040000, 20260827050000, 20260831000000, 20260831010000,