LiteDB.Studio icon indicating copy to clipboard operation
LiteDB.Studio copied to clipboard

LiteDB Studio corrupts the litedb database

Open HolyOne opened this issue 5 years ago • 2 comments

I have a .net core app generated litedb file. (LiteDB package version 4.1.4)

When I open it with LiteDBStudio, i can see all tables, make queries.

I close LiteDB Studio, I see the database file size is changed. (old one is stored as backup)

After I open my application again, it says "Datafile is not a LiteDB database"

The files showing the one after and before I open the database are attached

data.zip data-backup.zip

HolyOne avatar Nov 20 '19 09:11 HolyOne

Hi @HolyOne, when you first open your datafile in LiteDB Studio, this file are upgraded into new file format (used in LiteDB v5). After this, you can't back to v4 format.

mbdavid avatar Nov 20 '19 11:11 mbdavid

I think this process should be confirmed by user on db load.

HolyOne avatar Nov 21 '19 09:11 HolyOne