diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-03-01T15·04+0100 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2012-03-01T15·06+0100 |
commit | 8afd28a922c8d3a0113abad2b8071465c2d77fe9 (patch) | |
tree | 3ad602d499db3af7d8853ed966bceb95264df57b /src/libstore | |
parent | 1c94524458fda335739b163a76aedeb7bcc5f43a (diff) |
Remove dependency on sqlite3_table_column_metadata
Not all SQLite builds have the function sqlite3_table_column_metadata. We were only using it in a schema upgrade check for compatibility with databases that were probably never seen in the wild. So remove it.
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/local-store.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 21b1bdceae2f..db84cd23ce74 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -356,13 +356,6 @@ void LocalStore::openDB(bool create) throwSQLiteError(db, "initialising database schema"); } - /* Backwards compatibility with old (pre-release) databases. Can - remove this eventually. */ - if (sqlite3_table_column_metadata(db, 0, "ValidPaths", "narSize", 0, 0, 0, 0, 0) != SQLITE_OK) { - if (sqlite3_exec(db, "alter table ValidPaths add column narSize integer" , 0, 0, 0) != SQLITE_OK) - throwSQLiteError(db, "adding column narSize"); - } - /* Prepare SQL statements. */ stmtRegisterValidPath.create(db, "insert into ValidPaths (path, hash, registrationTime, deriver, narSize) values (?, ?, ?, ?, ?);"); |