This PR adds the ability to manage backup configurations outside of the the client. The implementation ensures that locally created configurations cannot be affected by the remotely managed backups. If the instance is not connected to a remote console, this has no effect. This PR updates the local database to add the column `ExternalID` that tracks backups that are managed remotely.
17 lines
464 B
SQL
17 lines
464 B
SQL
ALTER TABLE Backup RENAME TO BackupTemp;
|
|
|
|
CREATE TABLE "Backup" (
|
|
"ID" INTEGER PRIMARY KEY AUTOINCREMENT,
|
|
"Name" TEXT NOT NULL,
|
|
"Description" TEXT NOT NULL DEFAULT '',
|
|
"Tags" TEXT NOT NULL,
|
|
"TargetURL" TEXT NOT NULL,
|
|
"DBPath" TEXT NOT NULL,
|
|
);
|
|
|
|
INSERT INTO "Backup"("ID", "Name", "Description", "Tags", "TargetURL", "DBPath")
|
|
SELECT "ID", "Name", "Description", "Tags", "TargetURL", "DBPath"
|
|
FROM "BackupTemp";
|
|
|
|
DROP TABLE "BackupTemp";
|