diff --git a/src/openhuman/memory/store/unified/init.rs b/src/openhuman/memory/store/unified/init.rs
index c42b86f8a..6601da612 100644
--- a/src/openhuman/memory/store/unified/init.rs
+++ b/src/openhuman/memory/store/unified/init.rs
@@ -137,8 +137,8 @@ impl UnifiedMemory {
// We run the ALTER TABLE statements directly on `conn` before wrapping it in Arc.
// SQL arrays are defined as constants in profile.rs to avoid duplication.
{
- use super::profile::{PHASE3_COLUMNS_SQL, PHASE3_INDEXES_SQL};
- for sql in PHASE3_COLUMNS_SQL.iter().chain(PHASE3_INDEXES_SQL.iter()) {
+ use super::profile::PHASE3_COLUMNS_SQL;
+ for sql in PHASE3_COLUMNS_SQL.iter() {
match conn.execute(sql, []) {
Ok(_) => tracing::debug!("[profile:init] applied: {sql}"),
Err(e) => {
diff --git a/src/openhuman/memory/store/unified/profile.rs b/src/openhuman/memory/store/unified/profile.rs
index bd3984345..6904e3447 100644
--- a/src/openhuman/memory/store/unified/profile.rs
+++ b/src/openhuman/memory/store/unified/profile.rs
@@ -44,12 +44,6 @@ CREATE TABLE IF NOT EXISTS user_profile (
CREATE INDEX IF NOT EXISTS idx_profile_type
ON user_profile(facet_type);
-
-CREATE INDEX IF NOT EXISTS idx_profile_state
- ON user_profile(state);
-
-CREATE INDEX IF NOT EXISTS idx_profile_class
- ON user_profile(class);
"#;
/// Phase 3 ALTER TABLE statements for adding new columns to existing databases.
@@ -65,14 +59,6 @@ pub const PHASE3_COLUMNS_SQL: &[&str] = &[
"ALTER TABLE user_profile ADD COLUMN cue_families_json TEXT",
];
-/// Phase 3 index creation statements. Idempotent (IF NOT EXISTS).
-///
-/// Shared between `migrate_profile_schema` and `init.rs`.
-pub const PHASE3_INDEXES_SQL: &[&str] = &[
- "CREATE INDEX IF NOT EXISTS idx_profile_state ON user_profile(state)",
- "CREATE INDEX IF NOT EXISTS idx_profile_class ON user_profile(class)",
-];
-
/// Idempotent schema migration for existing databases.
///
/// New installs get the full schema from `PROFILE_INIT_SQL`. Existing databases
@@ -100,13 +86,6 @@ pub fn migrate_profile_schema(conn: &Arc>) {
}
}
}
-
- // Ensure the new indexes exist (idempotent — IF NOT EXISTS).
- for sql in PHASE3_INDEXES_SQL {
- if let Err(e) = conn.execute(sql, []) {
- tracing::warn!("[profile] index creation failed (non-fatal): {sql}: {e}");
- }
- }
}
// ── FacetState ───────────────────────────────────────────────────────────────