feat: rename the database from Settings, keeping all config
Adds a Rename button to Settings -> Database: renames the current SQLite database (e.g. opslog.db -> F4BPO.db) while preserving every setting/profile, unlike New database which starts empty. Implemented as a VACUUM INTO copy + pointer switch; the old file (open and locked now) is scheduled via config.json delete_pending and removed, with its -wal/-shm sidecars, on the next launch.
This commit is contained in:
Vendored
+2
@@ -678,6 +678,8 @@ export function ReloadUDPIntegrations():Promise<Array<string>>;
|
||||
|
||||
export function RemovePassphrase(arg1:string):Promise<void>;
|
||||
|
||||
export function RenameDatabase(arg1:string):Promise<void>;
|
||||
|
||||
export function RenderEQSL(arg1:number,arg2:number):Promise<string>;
|
||||
|
||||
export function ReplaceAwardReferences(arg1:string,arg2:Array<awardref.Ref>):Promise<number>;
|
||||
|
||||
Reference in New Issue
Block a user