Skip to content
Mauricio David edited this page Feb 11, 2017 · 6 revisions

To upgrade your datafile from LiteDB v2 you can use "upgrade=true" in connection string. Like this:

var db = new LiteDatabase("filename=old.db;upgrade=true");

LiteDB will update (if is necessary) to new datafile format. You can use shell too:

> upgrade my-old-file.db

if your old datafile is password protected, use:

> upgrade filename=my-old-file.db;password=mypass

Only v2 datafile is supported (file format 6). From v1 (file format 4) still under development