kidnappervan 4 Posted November 5 Posted November 5 I've extracted UserDatas.csv from the old library.db and imported it into the new library.db but it didn't recover the watched status. What am I doing wrong?
kidnappervan 4 Posted November 6 Author Posted November 6 My old installation was crashing, so, I reinstalled, let it scan my libraries and build a new database, shut it down, used DB Browser for SQLite to copy the table from the old db into the new one, then restarted, but the watched status did not reappear in the new installation.
kidnappervan 4 Posted November 6 Author Posted November 6 i think it was REPLACE INTO librarynew SELECT * FROM userdata; can you tell me the correct command?
Luke 43757 Posted November 6 Posted November 6 We don't really have a documented "correct command". This is what the backup feature is built to handle for you. But I would think that you cannot just copy those rows alone without causing database corruption due to foreign key constraints. You'd also need the userdatakeys table. You can probably get this to work but you're probably going to have to fix a few things one after the other until you get there. I don't have a ready-made list because we have not testing what you are trying to do, but off the top of my head, user ids are going to be different so that will need manual fixup.
kidnappervan 4 Posted November 6 Author Posted November 6 I thought Backup & Restore was only for metadata. Is it too late now to use the plugin to save the watched status. I have the old library.db and only have two active users.
Luke 43757 Posted November 7 Posted November 7 Unless you have the entire old server installation, then yes it's too late. But I would try what I mentioned above and see if that helps.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now