-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from Alanimdeo/development
v0.12.0
- Loading branch information
Showing
19 changed files
with
468 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import crypto from "crypto"; | ||
import { Database } from "../../modules/db"; | ||
|
||
export function upgrade(db: Database) { | ||
db.run("PRAGMA journal_mode = DELETE"); | ||
|
||
db.run("INSERT INTO info (key, value) VALUES (?, ?)", [ | ||
"sessionSecret", | ||
crypto.randomBytes(32).toString(), | ||
]); | ||
|
||
db.run( | ||
"ALTER TABLE watch_directory_presets ADD COLUMN customParameters TEXT NOT NULL DEFAULT '[]'" | ||
); | ||
db.run( | ||
"ALTER TABLE watch_condition_presets ADD COLUMN customParameters TEXT NOT NULL DEFAULT '[]'" | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.