@datatruck/cli 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{lib/Action → Action}/BackupAction.d.ts +0 -0
- package/{lib/Action → Action}/BackupAction.js +0 -0
- package/{lib/Action → Action}/BackupSessionsAction.d.ts +0 -0
- package/{lib/Action → Action}/BackupSessionsAction.js +0 -0
- package/{lib/Action → Action}/CleanCacheAction.d.ts +0 -0
- package/{lib/Action → Action}/CleanCacheAction.js +0 -0
- package/{lib/Action → Action}/ConfigAction.d.ts +0 -0
- package/{lib/Action → Action}/ConfigAction.js +0 -0
- package/{lib/Action → Action}/InitAction.d.ts +0 -0
- package/{lib/Action → Action}/InitAction.js +0 -0
- package/{lib/Action → Action}/PruneAction.d.ts +0 -0
- package/{lib/Action → Action}/PruneAction.js +0 -0
- package/{lib/Action → Action}/RestoreAction.d.ts +0 -0
- package/{lib/Action → Action}/RestoreAction.js +0 -0
- package/{lib/Action → Action}/RestoreSessionsAction.d.ts +0 -0
- package/{lib/Action → Action}/RestoreSessionsAction.js +0 -0
- package/{lib/Action → Action}/SnapshotsAction.d.ts +0 -0
- package/{lib/Action → Action}/SnapshotsAction.js +0 -0
- package/CHANGELOG.md +27 -0
- package/{lib/Command → Command}/BackupCommand.d.ts +0 -0
- package/{lib/Command → Command}/BackupCommand.js +0 -0
- package/{lib/Command → Command}/BackupSessionsCommand.d.ts +0 -0
- package/{lib/Command → Command}/BackupSessionsCommand.js +0 -0
- package/{lib/Command → Command}/CleanCacheCommand.d.ts +0 -0
- package/{lib/Command → Command}/CleanCacheCommand.js +0 -0
- package/{lib/Command → Command}/CommandAbstract.d.ts +0 -0
- package/{lib/Command → Command}/CommandAbstract.js +0 -0
- package/{lib/Command → Command}/ConfigCommand.d.ts +0 -0
- package/{lib/Command → Command}/ConfigCommand.js +0 -0
- package/{lib/Command → Command}/InitCommand.d.ts +0 -0
- package/{lib/Command → Command}/InitCommand.js +0 -0
- package/{lib/Command → Command}/PruneCommand.d.ts +0 -0
- package/{lib/Command → Command}/PruneCommand.js +0 -0
- package/{lib/Command → Command}/RestoreCommand.d.ts +0 -0
- package/{lib/Command → Command}/RestoreCommand.js +0 -0
- package/{lib/Command → Command}/RestoreSessionsCommand.d.ts +0 -0
- package/{lib/Command → Command}/RestoreSessionsCommand.js +0 -0
- package/{lib/Command → Command}/SnapshotsCommand.d.ts +0 -0
- package/{lib/Command → Command}/SnapshotsCommand.js +0 -0
- package/{lib/Config → Config}/Config.d.ts +0 -0
- package/{lib/Config → Config}/Config.js +0 -0
- package/{lib/Config → Config}/PackageConfig.d.ts +0 -0
- package/{lib/Config → Config}/PackageConfig.js +0 -0
- package/{lib/Config → Config}/PackageRepositoryConfig.d.ts +0 -0
- package/{lib/Config → Config}/PackageRepositoryConfig.js +0 -0
- package/{lib/Config → Config}/PrunePolicyConfig.d.ts +0 -0
- package/{lib/Config → Config}/PrunePolicyConfig.js +0 -0
- package/{lib/Config → Config}/RepositoryConfig.d.ts +0 -0
- package/{lib/Config → Config}/RepositoryConfig.js +0 -0
- package/{lib/Config → Config}/TaskConfig.d.ts +0 -0
- package/{lib/Config → Config}/TaskConfig.js +0 -0
- package/{lib/Decorator → Decorator}/EntityDecorator.d.ts +0 -0
- package/{lib/Decorator → Decorator}/EntityDecorator.js +0 -0
- package/{lib/Entity → Entity}/BackupSessionEntity.d.ts +0 -0
- package/{lib/Entity → Entity}/BackupSessionEntity.js +0 -0
- package/{lib/Entity → Entity}/BackupSessionRepositoryEntity.d.ts +0 -0
- package/{lib/Entity → Entity}/BackupSessionRepositoryEntity.js +0 -0
- package/{lib/Entity → Entity}/BackupSessionTaskEntity.d.ts +0 -0
- package/{lib/Entity → Entity}/BackupSessionTaskEntity.js +0 -0
- package/{lib/Entity → Entity}/CrudEntityAbstract.d.ts +0 -0
- package/{lib/Entity → Entity}/CrudEntityAbstract.js +0 -0
- package/{lib/Entity → Entity}/RestoreSessionEntity.d.ts +0 -0
- package/{lib/Entity → Entity}/RestoreSessionEntity.js +0 -0
- package/{lib/Entity → Entity}/RestoreSessionRepositoryEntity.d.ts +0 -0
- package/{lib/Entity → Entity}/RestoreSessionRepositoryEntity.js +0 -0
- package/{lib/Entity → Entity}/RestoreSessionTaskEntity.d.ts +0 -0
- package/{lib/Entity → Entity}/RestoreSessionTaskEntity.js +0 -0
- package/{lib/Entity → Entity}/StateEntityAbstract.d.ts +0 -0
- package/{lib/Entity → Entity}/StateEntityAbstract.js +0 -0
- package/{lib/Error → Error}/AppError.d.ts +0 -0
- package/{lib/Error → Error}/AppError.js +0 -0
- package/{lib/Factory → Factory}/CommandFactory.d.ts +0 -0
- package/{lib/Factory → Factory}/CommandFactory.js +0 -0
- package/{lib/Factory → Factory}/EntityFactory.d.ts +0 -0
- package/{lib/Factory → Factory}/EntityFactory.js +0 -0
- package/{lib/Factory → Factory}/RepositoryFactory.d.ts +0 -0
- package/{lib/Factory → Factory}/RepositoryFactory.js +0 -0
- package/{lib/Factory → Factory}/TaskFactory.d.ts +0 -0
- package/{lib/Factory → Factory}/TaskFactory.js +0 -0
- package/{lib/JsonSchema → JsonSchema}/DefinitionEnum.d.ts +0 -0
- package/{lib/JsonSchema → JsonSchema}/DefinitionEnum.js +0 -0
- package/{lib/JsonSchema → JsonSchema}/JsonSchema.d.ts +0 -0
- package/{lib/JsonSchema → JsonSchema}/JsonSchema.js +0 -0
- package/{lib/Repository → Repository}/GitRepository.d.ts +0 -0
- package/{lib/Repository → Repository}/GitRepository.js +0 -0
- package/{lib/Repository → Repository}/LocalRepository.d.ts +0 -0
- package/{lib/Repository → Repository}/LocalRepository.js +0 -0
- package/{lib/Repository → Repository}/RepositoryAbstract.d.ts +0 -0
- package/{lib/Repository → Repository}/RepositoryAbstract.js +0 -0
- package/{lib/Repository → Repository}/ResticRepository.d.ts +0 -0
- package/{lib/Repository → Repository}/ResticRepository.js +0 -0
- package/{lib/SessionDriver → SessionDriver}/ConsoleSessionDriver.d.ts +0 -0
- package/{lib/SessionDriver → SessionDriver}/ConsoleSessionDriver.js +0 -0
- package/{lib/SessionDriver → SessionDriver}/SessionDriverAbstract.d.ts +0 -0
- package/{lib/SessionDriver → SessionDriver}/SessionDriverAbstract.js +0 -0
- package/{lib/SessionDriver → SessionDriver}/SqliteSessionDriver.d.ts +0 -0
- package/{lib/SessionDriver → SessionDriver}/SqliteSessionDriver.js +2 -1
- package/{lib/SessionManager → SessionManager}/BackupSessionManager.d.ts +0 -0
- package/{lib/SessionManager → SessionManager}/BackupSessionManager.js +0 -0
- package/{lib/SessionManager → SessionManager}/RestoreSessionManager.d.ts +0 -0
- package/{lib/SessionManager → SessionManager}/RestoreSessionManager.js +0 -0
- package/{lib/Task → Task}/GitTask.d.ts +0 -0
- package/{lib/Task → Task}/GitTask.js +0 -0
- package/{lib/Task → Task}/MariadbTask.d.ts +0 -0
- package/{lib/Task → Task}/MariadbTask.js +0 -0
- package/{lib/Task → Task}/MssqlTask.d.ts +0 -0
- package/{lib/Task → Task}/MssqlTask.js +0 -0
- package/{lib/Task → Task}/MysqlDumpTask.d.ts +0 -0
- package/{lib/Task → Task}/MysqlDumpTask.js +0 -0
- package/{lib/Task → Task}/PostgresqlDumpTask.d.ts +0 -0
- package/{lib/Task → Task}/PostgresqlDumpTask.js +0 -0
- package/{lib/Task → Task}/SqlDumpTaskAbstract.d.ts +0 -0
- package/{lib/Task → Task}/SqlDumpTaskAbstract.js +0 -0
- package/{lib/Task → Task}/TaskAbstract.d.ts +0 -0
- package/{lib/Task → Task}/TaskAbstract.js +0 -0
- package/{lib/bin.d.ts → bin.d.ts} +0 -0
- package/{lib/bin.js → bin.js} +0 -0
- package/{lib/cli.d.ts → cli.d.ts} +0 -0
- package/{lib/cli.js → cli.js} +0 -0
- package/{lib/index.d.ts → index.d.ts} +0 -0
- package/{lib/index.js → index.js} +0 -0
- package/package.json +19 -38
- package/{lib/util → util}/DataFormat.d.ts +0 -0
- package/{lib/util → util}/DataFormat.js +0 -0
- package/{lib/util → util}/GitUtil.d.ts +0 -0
- package/{lib/util → util}/GitUtil.js +0 -0
- package/{lib/util → util}/ObjectVault.d.ts +0 -0
- package/{lib/util → util}/ObjectVault.js +0 -0
- package/{lib/util → util}/ResticUtil.d.ts +0 -0
- package/{lib/util → util}/ResticUtil.js +0 -0
- package/{lib/util → util}/cli-util.d.ts +0 -0
- package/{lib/util → util}/cli-util.js +0 -0
- package/{lib/util → util}/datatruck/config-util.d.ts +0 -0
- package/{lib/util → util}/datatruck/config-util.js +0 -0
- package/{lib/util → util}/datatruck/paths-util.d.ts +0 -0
- package/{lib/util → util}/datatruck/paths-util.js +0 -0
- package/{lib/util → util}/datatruck/snapshot-util.d.ts +0 -0
- package/{lib/util → util}/datatruck/snapshot-util.js +0 -0
- package/{lib/util → util}/date-util.d.ts +0 -0
- package/{lib/util → util}/date-util.js +0 -0
- package/{lib/util → util}/entity-util.d.ts +0 -0
- package/{lib/util → util}/entity-util.js +0 -0
- package/{lib/util → util}/fs-util.d.ts +0 -0
- package/{lib/util → util}/fs-util.js +2 -1
- package/{lib/util → util}/math-util.d.ts +0 -0
- package/{lib/util → util}/math-util.js +0 -0
- package/{lib/util → util}/object-util.d.ts +0 -0
- package/{lib/util → util}/object-util.js +0 -0
- package/util/path-util.d.ts +1 -0
- package/util/path-util.js +8 -0
- package/{lib/util → util}/process-util.d.ts +0 -0
- package/{lib/util → util}/process-util.js +0 -0
- package/{lib/util → util}/string-util.d.ts +0 -0
- package/{lib/util → util}/string-util.js +0 -0
- package/{lib/util → util}/zip-util.d.ts +0 -0
- package/{lib/util → util}/zip-util.js +0 -0
- package/migrations/001-initial.sql +0 -122
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# @datatruck/cli
|
|
2
|
+
|
|
3
|
+
## 0.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`78cb0c1`](https://github.com/swordev/datatruck/commit/78cb0c17558543841cd7080dc4c672e6cbfd5634) Thanks [@juanrgm](https://github.com/juanrgm)! - Fix docker image
|
|
8
|
+
|
|
9
|
+
## 0.0.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`d9e534b`](https://github.com/swordev/datatruck/commit/d9e534bd968acf9cd1c93f20e6152c004cb1f23b) Thanks [@juanrgm](https://github.com/juanrgm)! - Fix package file read
|
|
14
|
+
|
|
15
|
+
* [`b882c58`](https://github.com/swordev/datatruck/commit/b882c58183e9a75abc876645e18d7b67186dd662) Thanks [@juanrgm](https://github.com/juanrgm)! - Fix read of migrations
|
|
16
|
+
|
|
17
|
+
## 0.0.3
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- [`051a7da`](https://github.com/swordev/datatruck/commit/051a7da225fcfea1c30a4fbfa8aea1b8f5538367) Thanks [@juanrgm](https://github.com/juanrgm)! - Fix dist files
|
|
22
|
+
|
|
23
|
+
## 0.0.2
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [`0911351`](https://github.com/swordev/datatruck/commit/09113517e1a77f2d2a1e19e4c3d9af7da1e28415) Thanks [@juanrgm](https://github.com/juanrgm)! - Publish docker image
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,6 +11,7 @@ const RestoreSessionEntity_1 = require("../Entity/RestoreSessionEntity");
|
|
|
11
11
|
const RestoreSessionRepositoryEntity_1 = require("../Entity/RestoreSessionRepositoryEntity");
|
|
12
12
|
const cli_util_1 = require("../util/cli-util");
|
|
13
13
|
const entity_util_1 = require("../util/entity-util");
|
|
14
|
+
const path_util_1 = require("../util/path-util");
|
|
14
15
|
const process_util_1 = require("../util/process-util");
|
|
15
16
|
const SessionDriverAbstract_1 = require("./SessionDriverAbstract");
|
|
16
17
|
const assert_1 = require("assert");
|
|
@@ -30,7 +31,7 @@ class SqliteSessionDriver extends SessionDriverAbstract_1.SessionDriverAbstract
|
|
|
30
31
|
driver: sqlite3_1.default.Database,
|
|
31
32
|
});
|
|
32
33
|
await this.db.migrate({
|
|
33
|
-
migrationsPath:
|
|
34
|
+
migrationsPath: (0, path_1.join)(path_util_1.rootPath, "migrations"),
|
|
34
35
|
});
|
|
35
36
|
}
|
|
36
37
|
buildInsertStm(tableName, values) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/{lib/bin.js → bin.js}
RENAMED
|
File without changes
|
|
File without changes
|
package/{lib/cli.js → cli.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,33 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datatruck/cli",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Tool for creating and managing backups",
|
|
5
|
-
"homepage": "https://github.com/swordev/datatruck#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.com/swordev/datatruck/issues"
|
|
8
|
-
},
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/swordev/datatruck"
|
|
12
|
-
},
|
|
13
|
-
"license": "MIT",
|
|
14
|
-
"author": {
|
|
15
|
-
"name": "Juanra GM",
|
|
16
|
-
"email": "juanrgm724@gmail.com",
|
|
17
|
-
"url": "https://github.com/juanrgm"
|
|
18
|
-
},
|
|
19
|
-
"exports": {
|
|
20
|
-
"./*": "./lib/*.js"
|
|
21
|
-
},
|
|
22
|
-
"main": "lib/index.js",
|
|
23
|
-
"bin": {
|
|
24
|
-
"datatruck": "lib/bin.js",
|
|
25
|
-
"dtt": "lib/bin.js"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"lib",
|
|
29
|
-
"migrations"
|
|
30
|
-
],
|
|
3
|
+
"version": "0.0.5",
|
|
31
4
|
"dependencies": {
|
|
32
5
|
"ajv": "^8.10.0",
|
|
33
6
|
"chalk": "^4.1.2",
|
|
@@ -41,12 +14,6 @@
|
|
|
41
14
|
"sqlite": "^4.0.23",
|
|
42
15
|
"sqlite3": "^5.0.2"
|
|
43
16
|
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@types/fs-extra": "^9.0.13",
|
|
46
|
-
"@types/json-schema": "^7.0.9",
|
|
47
|
-
"@types/micromatch": "^4.0.2",
|
|
48
|
-
"json-schema": "^0.4.0"
|
|
49
|
-
},
|
|
50
17
|
"optionalDependencies": {
|
|
51
18
|
"ts-node": "^10.5.0",
|
|
52
19
|
"yaml": "^1.10.2"
|
|
@@ -54,9 +21,23 @@
|
|
|
54
21
|
"engine": {
|
|
55
22
|
"node": ">=16.0.0"
|
|
56
23
|
},
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
24
|
+
"bin": {
|
|
25
|
+
"datatruck": "bin.js",
|
|
26
|
+
"dtt": "bin.js"
|
|
27
|
+
},
|
|
28
|
+
"description": "Tool for creating and managing backups",
|
|
29
|
+
"homepage": "https://github.com/swordev/datatruck#readme",
|
|
30
|
+
"bugs": {
|
|
31
|
+
"url": "https://github.com/swordev/datatruck/issues"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "https://github.com/swordev/datatruck"
|
|
36
|
+
},
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"author": {
|
|
39
|
+
"name": "Juanra GM",
|
|
40
|
+
"email": "juanrgm724@gmail.com",
|
|
41
|
+
"url": "https://github.com/juanrgm"
|
|
61
42
|
}
|
|
62
43
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.writePathLists = exports.forEachFile = exports.checkDir = exports.checkFile = exports.readPartialFile = exports.mkTmpDir = exports.tmpDir = exports.sessionTmpDir = exports.parentTmpDir = exports.existsFile = exports.findFile = exports.parsePackageFile = exports.parseFile = exports.parseFileExtensions = exports.readdirIfExists = exports.writeJSONFile = exports.existsDir = exports.ensureEmptyDir = exports.mkdirIfNotExists = exports.isDirEmpty = exports.isLocalDir = void 0;
|
|
4
|
+
const path_util_1 = require("./path-util");
|
|
4
5
|
const crypto_1 = require("crypto");
|
|
5
6
|
const fs_1 = require("fs");
|
|
6
7
|
const fs_2 = require("fs");
|
|
@@ -75,7 +76,7 @@ async function parseFile(path, jsKey) {
|
|
|
75
76
|
}
|
|
76
77
|
exports.parseFile = parseFile;
|
|
77
78
|
function parsePackageFile() {
|
|
78
|
-
return require(`${
|
|
79
|
+
return require(`${path_util_1.rootPath}/package.json`);
|
|
79
80
|
}
|
|
80
81
|
exports.parsePackageFile = parsePackageFile;
|
|
81
82
|
async function findFile(sourcePath, baseName, extensions, errorMessage = "Path not found") {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const rootPath: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.rootPath = void 0;
|
|
4
|
+
const path_1 = require("path");
|
|
5
|
+
const fromSrc = __filename.endsWith(".ts");
|
|
6
|
+
exports.rootPath = fromSrc
|
|
7
|
+
? (0, path_1.normalize)(`${__dirname}/../../`)
|
|
8
|
+
: (0, path_1.normalize)(`${__dirname}/../`);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
--------------------------------------------------------------------------------
|
|
2
|
-
-- Up
|
|
3
|
-
--------------------------------------------------------------------------------
|
|
4
|
-
|
|
5
|
-
CREATE TABLE "backup_session" (
|
|
6
|
-
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
7
|
-
"creationDate" TEXT NOT NULL,
|
|
8
|
-
"updatingDate" TEXT,
|
|
9
|
-
|
|
10
|
-
"startDate" TEXT,
|
|
11
|
-
"endDate" TEXT,
|
|
12
|
-
"state" TEXT,
|
|
13
|
-
"error" TEXT,
|
|
14
|
-
"progressCurrent" INTEGER,
|
|
15
|
-
"progressTotal" INTEGER,
|
|
16
|
-
"progressPercent" INTEGER,
|
|
17
|
-
"progressStep" TEXT,
|
|
18
|
-
"progressStepPercent" INTEGER,
|
|
19
|
-
|
|
20
|
-
"snapshotId" TEXT NOT NULL,
|
|
21
|
-
"packageName" TEXT NOT NULL,
|
|
22
|
-
-- "componentName" TEXT NOT NULL,
|
|
23
|
-
"tags" TEXT
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
CREATE TABLE "backup_session_task" (
|
|
27
|
-
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
28
|
-
"creationDate" TEXT NOT NULL,
|
|
29
|
-
"updatingDate" TEXT,
|
|
30
|
-
|
|
31
|
-
"startDate" TEXT,
|
|
32
|
-
"endDate" TEXT,
|
|
33
|
-
"state" TEXT,
|
|
34
|
-
"error" TEXT,
|
|
35
|
-
"progressCurrent" INTEGER,
|
|
36
|
-
"progressTotal" INTEGER,
|
|
37
|
-
"progressPercent" INTEGER,
|
|
38
|
-
"progressStep" TEXT,
|
|
39
|
-
"progressStepPercent" INTEGER,
|
|
40
|
-
|
|
41
|
-
"sessionId" INTEGER NOT NULL,
|
|
42
|
-
"taskName" TEXT NOT NULL
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
CREATE TABLE "backup_session_repository" (
|
|
46
|
-
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
47
|
-
"creationDate" TEXT NOT NULL,
|
|
48
|
-
"updatingDate" TEXT,
|
|
49
|
-
|
|
50
|
-
"startDate" TEXT,
|
|
51
|
-
"endDate" TEXT,
|
|
52
|
-
"state" TEXT,
|
|
53
|
-
"error" TEXT,
|
|
54
|
-
"progressCurrent" INTEGER,
|
|
55
|
-
"progressTotal" INTEGER,
|
|
56
|
-
"progressPercent" INTEGER,
|
|
57
|
-
"progressStep" TEXT,
|
|
58
|
-
"progressStepPercent" INTEGER,
|
|
59
|
-
|
|
60
|
-
"sessionId" INTEGER NOT NULL,
|
|
61
|
-
"repositoryName" TEXT NOT NULL,
|
|
62
|
-
"repositoryType" TEXT NOT NULL
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
CREATE TABLE "restore_session" (
|
|
66
|
-
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
67
|
-
"creationDate" TEXT NOT NULL,
|
|
68
|
-
"updatingDate" TEXT,
|
|
69
|
-
|
|
70
|
-
"startDate" TEXT,
|
|
71
|
-
"endDate" TEXT,
|
|
72
|
-
"state" TEXT,
|
|
73
|
-
"error" TEXT,
|
|
74
|
-
"progressCurrent" INTEGER,
|
|
75
|
-
"progressTotal" INTEGER,
|
|
76
|
-
"progressPercent" INTEGER,
|
|
77
|
-
"progressStep" TEXT,
|
|
78
|
-
"progressStepPercent" INTEGER,
|
|
79
|
-
|
|
80
|
-
"snapshotId" TEXT NOT NULL,
|
|
81
|
-
"packageName" TEXT NOT NULL -- ,
|
|
82
|
-
-- "componentName" TEXT NOT NULL
|
|
83
|
-
);
|
|
84
|
-
|
|
85
|
-
CREATE TABLE "restore_session_task" (
|
|
86
|
-
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
87
|
-
"creationDate" TEXT NOT NULL,
|
|
88
|
-
"updatingDate" TEXT,
|
|
89
|
-
|
|
90
|
-
"startDate" TEXT,
|
|
91
|
-
"endDate" TEXT,
|
|
92
|
-
"state" TEXT,
|
|
93
|
-
"error" TEXT,
|
|
94
|
-
"progressCurrent" INTEGER,
|
|
95
|
-
"progressTotal" INTEGER,
|
|
96
|
-
"progressPercent" INTEGER,
|
|
97
|
-
"progressStep" TEXT,
|
|
98
|
-
"progressStepPercent" INTEGER,
|
|
99
|
-
|
|
100
|
-
"sessionId" INTEGER NOT NULL,
|
|
101
|
-
"taskName" TEXT NOT NULL
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
CREATE TABLE "restore_session_repository" (
|
|
105
|
-
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
106
|
-
"creationDate" TEXT NOT NULL,
|
|
107
|
-
"updatingDate" TEXT,
|
|
108
|
-
|
|
109
|
-
"startDate" TEXT,
|
|
110
|
-
"endDate" TEXT,
|
|
111
|
-
"state" TEXT,
|
|
112
|
-
"error" TEXT,
|
|
113
|
-
"progressCurrent" INTEGER,
|
|
114
|
-
"progressTotal" INTEGER,
|
|
115
|
-
"progressPercent" INTEGER,
|
|
116
|
-
"progressStep" TEXT,
|
|
117
|
-
"progressStepPercent" INTEGER,
|
|
118
|
-
|
|
119
|
-
"sessionId" INTEGER NOT NULL,
|
|
120
|
-
"repositoryName" TEXT NOT NULL,
|
|
121
|
-
"repositoryType" TEXT NOT NULL
|
|
122
|
-
);
|