mirror of
https://github.com/duplicati/duplicati.git
synced 2025-11-28 11:30:24 +08:00
codacy uses sqlint so formatting looks to be inportant or an error is found. Format the SQL using sqlint or a tool that uses sqlint such as https://www.onlinegdb.com/online_sqlite_editor and run Beautify.
12 lines
424 B
SQL
12 lines
424 B
SQL
CREATE TABLE "Fileset_Temp" ("ID" INTEGER PRIMARY KEY,
|
|
"OperationID" INTEGER NOT NULL,
|
|
"VolumeID" INTEGER NOT NULL,
|
|
"IsFullBackup" INTEGER NOT NULL,
|
|
"Timestamp" INTEGER NOT NULL);
|
|
|
|
INSERT INTO "Fileset_Temp" SELECT "ID", "OperationID", "VolumeID", 1,
|
|
"Timestamp" FROM "Fileset";
|
|
DROP TABLE "Fileset";
|
|
ALTER TABLE "Fileset_Temp" RENAME TO "Fileset";
|
|
|
|
UPDATE "Version" SET "Version" = 10;
|