mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-08 07:08:44 +00:00
Align schema version with migration count
This commit is contained in:
@@ -17,6 +17,7 @@ CREATE TABLE IF NOT EXISTS tags (
|
|||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
name TEXT NOT NULL, -- tag segment
|
name TEXT NOT NULL, -- tag segment
|
||||||
parent_id INTEGER REFERENCES tags(id) ON DELETE CASCADE,
|
parent_id INTEGER REFERENCES tags(id) ON DELETE CASCADE,
|
||||||
|
canonical_id INTEGER REFERENCES tags(id),
|
||||||
UNIQUE(name, parent_id)
|
UNIQUE(name, parent_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@@ -21,7 +21,7 @@ use tracing::{debug, info, warn};
|
|||||||
/* ─── schema version ───────────────────────────────────────────────── */
|
/* ─── schema version ───────────────────────────────────────────────── */
|
||||||
|
|
||||||
/// Current library schema version.
|
/// Current library schema version.
|
||||||
pub const SCHEMA_VERSION: i32 = 1_1;
|
pub const SCHEMA_VERSION: i32 = MIGRATIONS.len() as i32;
|
||||||
|
|
||||||
/* ─── embedded migrations ─────────────────────────────────────────── */
|
/* ─── embedded migrations ─────────────────────────────────────────── */
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user