mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2026-10-27 08:51:00 +00:00
Merge pull request #58 from PR0M3TH3AN/codex/fix-migration-issue-with-missing-column
Fix migrations when opening new DB
This commit is contained in:
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)
|
||||
);
|
||||
|
||||
|
||||
@@ -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 ─────────────────────────────────────────── */
|
||||
|
||||
|
||||
Reference in new issue
Block a user