mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-11-06 03:08:55 -05:00
Fix unable to repair DB when UNIQUE constraint errors occur
Not all DBs were repairable. This fix addresses UNIQUE constraint failures.
This commit is contained in:
parent
fcf132f9e1
commit
80fb3a751c
@ -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."
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user