Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 3018:e3b5c07146a3 db-changes
speeding up the computation of the size of the attachments in SQLite
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 14 Dec 2018 16:04:17 +0100 |
parents | bbfd95a0c429 |
children | 6a2c7e206ebb |
comparison
equal
deleted
inserted
replaced
3017:517fc4767ae0 | 3018:e3b5c07146a3 |
---|---|
1172 return false; // Stop and don't restart Orthanc (cf. issue 29) | 1172 return false; // Stop and don't restart Orthanc (cf. issue 29) |
1173 } | 1173 } |
1174 else if (currentVersion != ORTHANC_DATABASE_VERSION) | 1174 else if (currentVersion != ORTHANC_DATABASE_VERSION) |
1175 { | 1175 { |
1176 throw OrthancException(ErrorCode_IncompatibleDatabaseVersion, | 1176 throw OrthancException(ErrorCode_IncompatibleDatabaseVersion, |
1177 "The database schema must be changed from version " + | 1177 "The database schema must be upgraded from version " + |
1178 boost::lexical_cast<std::string>(currentVersion) + " to " + | 1178 boost::lexical_cast<std::string>(currentVersion) + " to " + |
1179 boost::lexical_cast<std::string>(ORTHANC_DATABASE_VERSION) + | 1179 boost::lexical_cast<std::string>(ORTHANC_DATABASE_VERSION) + |
1180 ": Please run Orthanc with the \"--upgrade\" argument"); | 1180 ": Please run Orthanc with the \"--upgrade\" argument"); |
1181 } | 1181 } |
1182 | 1182 |