Align schema version with migration count

This commit is contained in:
thePR0M3TH3AN committed 2025-05-22 10:28:03 -04:00
1 parent 4bd4cb6738
commit 37764a643c
2 files changed
+2 -1

No files matched your search

@@ -17,6 +17,7 @@ CREATE TABLE IF NOT EXISTS tags (
id INTEGER PRIMARY KEY,
name TEXT NOT NULL, -- tag segment
parent_id INTEGER REFERENCES tags(id) ON DELETE CASCADE,
canonical_id INTEGER REFERENCES tags(id),
UNIQUE(name, parent_id)
);
+1 -1
View File
@@ -21,7 +21,7 @@ use tracing::{debug, info, warn};
/* ─── schema version ───────────────────────────────────────────────── */
/// Current library schema version.
pub const SCHEMA_VERSION: i32 = 1_1;
pub const SCHEMA_VERSION: i32 = MIGRATIONS.len() as i32;
/* ─── embedded migrations ─────────────────────────────────────────── */