Files
duplicati/Duplicati/CommandLine/DatabaseTool/Scripts/Server/9. Remove ExternalID from backup.sql
T
Kenneth Skovhede 34b6f9ea55 Implemented remotely managed backup configurations
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.
2025-09-17 15:07:09 +02:00

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";