Skip to content
Mauricio David edited this page Jan 31, 2020 · 6 revisions

This documentation is valid only for v4.x version.


There is no datafile changes from LiteDB v3 to v4. You can use same database file!

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).