Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
Adds index on cob cache for issues and patches
✗ CI failure Johannes Kühlewindt committed 6 months ago
commit 0a49ff70ed67790c0d464966abba7cf20467f9c7
parent 5ed1b8e5791a507b242ea596770359cc0895b219
2 failed (2 total) View logs
2 files changed +6 -0
modified crates/radicle/src/cob/cache.rs
@@ -28,6 +28,7 @@ const DB_WRITE_TIMEOUT: time::Duration = time::Duration::from_secs(6);
const MIGRATIONS: &[Migration] = &[
    Migration::Sql(include_str!("cache/migrations/1.sql")),
    Migration::Native(migrations::_2::run),
+
    Migration::Sql(include_str!("cache/migrations/3.sql")),
];

/// Function signature for native migrations.
added crates/radicle/src/cob/cache/migrations/3.sql
@@ -0,0 +1,5 @@
+
-- Issues Index over repo
+
create index if not exists 'issues_repos' on 'issues' (repo);
+

+
-- Patches Index over repo
+
create index if not exists 'patches_repos' on 'patches' (repo);