mbdavid / LiteDB.Studio

A GUI tool for viewing and editing documents for LiteDB v5
MIT License
799 stars 203 forks source link

LiteDB Studio corrupts the litedb database #5

Open HolyOne opened 4 years ago

HolyOne commented 4 years ago

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

mbdavid commented 4 years ago

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.

HolyOne commented 4 years ago

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