File src/BuildHistory.cpp changed (mode: 100644) (index 630e536..5cf0086) |
... |
... |
static std::string hashCoverage(const std::vector<int> &vec); |
34 |
34 |
static void updateDBSchema(DB &db, int fromVersion); |
static void updateDBSchema(DB &db, int fromVersion); |
35 |
35 |
|
|
36 |
36 |
//! Current database scheme version. |
//! Current database scheme version. |
37 |
|
const int AppDBVersion = 1; |
|
|
37 |
|
const int AppDBVersion = 2; |
38 |
38 |
|
|
39 |
39 |
File::File(std::string path, std::string hash, std::vector<int> coverage) |
File::File(std::string path, std::string hash, std::vector<int> coverage) |
40 |
40 |
: path(std::move(path)), hash(std::move(hash)), |
: path(std::move(path)), hash(std::move(hash)), |
|
... |
... |
updateDBSchema(DB &db, int fromVersion) |
323 |
323 |
) |
) |
324 |
324 |
)"); |
)"); |
325 |
325 |
// Fall through. |
// Fall through. |
|
326 |
|
case 1: |
|
327 |
|
db.execute(R"( |
|
328 |
|
CREATE INDEX files_idx ON files(path, hash, covhash) |
|
329 |
|
)"); |
|
330 |
|
// Fall through. |
326 |
331 |
case AppDBVersion: |
case AppDBVersion: |
327 |
332 |
break; |
break; |
328 |
333 |
} |
} |