Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perform a sanity check on database at launch #1778

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

barijaona
Copy link
Member

Run sqlite's PRAGMA quick_check on app startup. Vienna will advise user to restart from a good backup if possible.

If this is not possible, I got a decent result by running the following commands in Terminal:

mv messages.db corrupt.db
sqlite3 corrupt.db ".recover" | sqlite3 messages.db

@barijaona barijaona added the changes localisations 💬 This pull request adds, changes or removes localisation keys. label Jul 22, 2024
Copy link
Contributor

@Eitot Eitot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably good to create a section in the help book and add a "help" button to the alert so that users can find out what to do.

Vienna/Sources/Database/Database.m Outdated Show resolved Hide resolved
Vienna/Sources/Database/Database.m Outdated Show resolved Hide resolved
@barijaona
Copy link
Member Author

barijaona commented Jul 23, 2024

It would probably good to create a section in the help book and add a "help" button to the alert so that users can find out what to do.

The FAQ section of the help book needs some reorganization. Will add this subject into it.

@barijaona barijaona merged commit 426dc36 into ViennaRSS:master Jul 24, 2024
2 checks passed
@barijaona barijaona deleted the database branch July 24, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changes localisations 💬 This pull request adds, changes or removes localisation keys.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants