mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: database migration
This commit is contained in:
parent
214e39adda
commit
c21ebe1ce2
4 changed files with 13 additions and 92 deletions
|
@ -4,6 +4,7 @@ import { Hydra2_0_3 } from "./migrations/20240830143811_Hydra_2_0_3";
|
|||
import { RepackUris } from "./migrations/20240830143906_RepackUris";
|
||||
import { UpdateUserLanguage } from "./migrations/20240913213944_update_user_language";
|
||||
import { EnsureRepackUris } from "./migrations/20240915035339_ensure_repack_uris";
|
||||
import { app } from "electron";
|
||||
|
||||
export type HydraMigration = Knex.Migration & { name: string };
|
||||
|
||||
|
@ -25,6 +26,7 @@ class MigrationSource implements Knex.MigrationSource<HydraMigration> {
|
|||
}
|
||||
|
||||
export const knexClient = knex({
|
||||
debug: !app.isPackaged,
|
||||
client: "better-sqlite3",
|
||||
connection: {
|
||||
filename: databasePath,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue