From 80fb3a751c0dd3638161f2e8ec72f05c5d409104 Mon Sep 17 00:00:00 2001 From: ChuckPa Date: Sat, 25 Nov 2023 19:35:51 -0500 Subject: [PATCH 1/2] Fix unable to repair DB when UNIQUE constraint errors occur Not all DBs were repairable. This fix addresses UNIQUE constraint failures. --- DBRepair.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/DBRepair.sh b/DBRepair.sh index d163b97..21724fb 100755 --- a/DBRepair.sh +++ b/DBRepair.sh @@ -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." From fa760e3ddf35888993277fd43afb5e250ac3c61e Mon Sep 17 00:00:00 2001 From: ChuckPa Date: Sat, 25 Nov 2023 19:38:53 -0500 Subject: [PATCH 2/2] Update version to 1.01.04 after patch update version to 1.01.04 after patch --- DBRepair.sh | 4 ++-- ReleaseNotes | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DBRepair.sh b/DBRepair.sh index 21724fb..ab52aa5 100755 --- a/DBRepair.sh +++ b/DBRepair.sh @@ -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 diff --git a/ReleaseNotes b/ReleaseNotes index 2ca49f3..0f3ebf6 100644 --- a/ReleaseNotes +++ b/ReleaseNotes @@ -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.