diff options
Diffstat (limited to 'src/db.rs')
| -rw-r--r-- | src/db.rs | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -114,6 +114,9 @@ impl Database { | |||
| 114 | let _ = conn.execute_batch( | 114 | let _ = conn.execute_batch( |
| 115 | "ALTER TABLE instances ADD COLUMN whitelist_enabled INTEGER NOT NULL DEFAULT 1", | 115 | "ALTER TABLE instances ADD COLUMN whitelist_enabled INTEGER NOT NULL DEFAULT 1", |
| 116 | ); | 116 | ); |
| 117 | // Migration: add enabled column to mods for disable/enable toggling | ||
| 118 | let _ = | ||
| 119 | conn.execute_batch("ALTER TABLE mods ADD COLUMN enabled INTEGER NOT NULL DEFAULT 1"); | ||
| 117 | Ok(()) | 120 | Ok(()) |
| 118 | } | 121 | } |
| 119 | 122 | ||
