mirror of
https://github.com/ChuckPa/PlexDBRepair.git
synced 2025-12-06 01:12:33 -05:00
Merge pull request #261 from ChuckPa/chuckpa/autoincrement
Deflate - Minor adjustment per Plex engineering.
This commit is contained in:
11
DBRepair.sh
11
DBRepair.sh
@@ -2,12 +2,12 @@
|
|||||||
#########################################################################
|
#########################################################################
|
||||||
# Database Repair Utility for Plex Media Server. #
|
# Database Repair Utility for Plex Media Server. #
|
||||||
# Maintainer: ChuckPa #
|
# Maintainer: ChuckPa #
|
||||||
# Version: v1.13.01 #
|
# Version: v1.13.02 #
|
||||||
# Date: 14-Nov-2025 #
|
# Date: 04-Dec-2025 #
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
# Version for display purposes
|
# Version for display purposes
|
||||||
Version="v1.13.01"
|
Version="v1.13.02"
|
||||||
|
|
||||||
# Have the databases passed integrity checks
|
# Have the databases passed integrity checks
|
||||||
CheckedDB=0
|
CheckedDB=0
|
||||||
@@ -1462,9 +1462,12 @@ DoDeflate() {
|
|||||||
-- Exclusive DB access
|
-- Exclusive DB access
|
||||||
BEGIN IMMEDIATE;
|
BEGIN IMMEDIATE;
|
||||||
|
|
||||||
|
-- Remove old temp table if exists
|
||||||
|
DROP TABLE IF EXISTS temp_bandwidth;
|
||||||
|
|
||||||
-- Create new table
|
-- Create new table
|
||||||
CREATE TABLE temp_bandwidth (
|
CREATE TABLE temp_bandwidth (
|
||||||
id INTEGER PRIMARY KEY,
|
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
|
||||||
account_id INTEGER,
|
account_id INTEGER,
|
||||||
device_id INTEGER,
|
device_id INTEGER,
|
||||||
timespan INTEGER,
|
timespan INTEGER,
|
||||||
|
|||||||
@@ -8,6 +8,10 @@
|
|||||||

|

|
||||||
|
|
||||||
# Release Info:
|
# Release Info:
|
||||||
|
v1.13.02
|
||||||
|
|
||||||
|
1. Autoincrement - Adjust statistics_bandwidth table per Plex engineering suggestion.
|
||||||
|
|
||||||
v1.13.01
|
v1.13.01
|
||||||
|
|
||||||
1. Tag sort order - Github tags are not guaranteed to be numeric or in most-recent order.
|
1. Tag sort order - Github tags are not guaranteed to be numeric or in most-recent order.
|
||||||
|
|||||||
Reference in New Issue
Block a user