Merge pull request #114 from ChuckPa/chuckpa/missing-ignore-errors-check

Fix unable to repair DB when UNIQUE constraint errors occur
This commit is contained in:
Chuck 2023-11-25 16:51:54 -08:00 committed by GitHub
commit 6c7157cb5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -2,12 +2,12 @@
#########################################################################
# Plex Media Server database check and repair utility script. #
# Maintainer: ChuckPa #
# Version: v1.01.03 #
# Version: v1.01.04 #
# Date: 25-Nov-2023 #
#########################################################################
# Version for display purposes
Version="v1.01.03"
Version="v1.01.04"
# Flag when temp files are to be retained
Retain=0
@ -884,6 +884,7 @@ DoRepair() {
Result=$?
[ $IgnoreErrors -eq 1 ] && Result=0
if ! SQLiteOK $Result ; then
Output "Error $Result from Plex SQLite while importing from '$TMPDIR/library.plexapp.sql-$TimeStamp'"
WriteLog "Repair - Cannot import main database from '$TMPDIR/library.plexapp.sql-$TimeStamp' - FAIL ($Result)"
Output "Cannot continue."

View File

@ -8,7 +8,7 @@
![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)
# Release Info:
v1.01.03
v1.01.04
- Missing IgnoreErrors (-i / -f) test when reimporting damaged DB with certain errors prevented repair
in all cases.