diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-11-06T01·15+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2009-11-06T01·15+0000 |
commit | 327a232c85de3faa56f9a6117c86e1aa22f88bd6 (patch) | |
tree | a664640621fd3d6806683e08beebc142b634b4fc /src/libstore/local-store.cc | |
parent | c60d796f04f81b17330fbfc1e438ed207b1047f4 (diff) |
* Remove support for old (before Nix 0.12pre12020) databases.
Diffstat (limited to 'src/libstore/local-store.cc')
-rw-r--r-- | src/libstore/local-store.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index f1a314fa10cd..135446fe11c4 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1133,4 +1133,16 @@ void LocalStore::verifyStore(bool checkContents) } +/* Upgrade from schema 4 (Nix 0.11) to schema 5 (Nix >= 0.12). The + old schema uses Berkeley DB, the new one stores store path + meta-information in files. */ +void LocalStore::upgradeStore12() +{ + throw Error( + "Your Nix store has a database in Berkeley DB format,\n" + "which is no longer supported. To convert to the new format,\n" + "please upgrade Nix to version 0.12 first."); +} + + } |