mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-06 03:08:55 -05:00
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:
commit
6c7157cb5f
@ -2,12 +2,12 @@
|
|||||||
#########################################################################
|
#########################################################################
|
||||||
# Plex Media Server database check and repair utility script. #
|
# Plex Media Server database check and repair utility script. #
|
||||||
# Maintainer: ChuckPa #
|
# Maintainer: ChuckPa #
|
||||||
# Version: v1.01.03 #
|
# Version: v1.01.04 #
|
||||||
# Date: 25-Nov-2023 #
|
# Date: 25-Nov-2023 #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# Version for display purposes
|
# Version for display purposes
|
||||||
Version="v1.01.03"
|
Version="v1.01.04"
|
||||||
|
|
||||||
# Flag when temp files are to be retained
|
# Flag when temp files are to be retained
|
||||||
Retain=0
|
Retain=0
|
||||||
@ -884,6 +884,7 @@ DoRepair() {
|
|||||||
Result=$?
|
Result=$?
|
||||||
[ $IgnoreErrors -eq 1 ] && Result=0
|
[ $IgnoreErrors -eq 1 ] && Result=0
|
||||||
|
|
||||||
|
if ! SQLiteOK $Result ; then
|
||||||
Output "Error $Result from Plex SQLite while importing from '$TMPDIR/library.plexapp.sql-$TimeStamp'"
|
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)"
|
WriteLog "Repair - Cannot import main database from '$TMPDIR/library.plexapp.sql-$TimeStamp' - FAIL ($Result)"
|
||||||
Output "Cannot continue."
|
Output "Cannot continue."
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||

|

|
||||||
|
|
||||||
# Release Info:
|
# Release Info:
|
||||||
v1.01.03
|
v1.01.04
|
||||||
|
|
||||||
- Missing IgnoreErrors (-i / -f) test when reimporting damaged DB with certain errors prevented repair
|
- Missing IgnoreErrors (-i / -f) test when reimporting damaged DB with certain errors prevented repair
|
||||||
in all cases.
|
in all cases.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user