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:
ChuckPa 2023-11-25 19:35:51 -05:00
parent fcf132f9e1
commit 80fb3a751c
No known key found for this signature in database
GPG Key ID: 3CE28A0F6BC31B5B

View File

@ -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."