diff --git a/server/src/db/migrations.ts b/server/src/db/migrations.ts index 8eb97be44..8d4bfd82c 100644 --- a/server/src/db/migrations.ts +++ b/server/src/db/migrations.ts @@ -3358,7 +3358,9 @@ function runMigrations(db: Database.Database): void { // Boot now retries every enabled plugin regardless of last status. () => { db.exec("ALTER TABLE plugins ADD COLUMN enabled INTEGER NOT NULL DEFAULT 0;"); - db.exec("UPDATE plugins SET enabled = 1 WHERE status = 'active';"); + // Anything not explicitly deactivated was meant to be on ('inactive' is the + // only status deactivate() sets; a crash/shutdown could leave error/stopped/starting). + db.exec("UPDATE plugins SET enabled = 1 WHERE status != 'inactive';"); }, ];