aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-01-30 16:55:07 +0100
committerGitHub <noreply@github.com>2019-01-30 16:55:07 +0100
commitd0f2b3a747a015789326793d7b5f480748815f9b (patch)
tree15788fd4967e90039432b9036428b25200490ca8 /Emby.Server.Implementations/Data
parent08b63a7c11d5db9126c48e644b090223f86f0eb8 (diff)
parentffcf6bdd3aaad5068decf84b0400e433fdb8323c (diff)
Merge branch 'master' into startuptasks
Diffstat (limited to 'Emby.Server.Implementations/Data')
-rw-r--r--Emby.Server.Implementations/Data/SqliteItemRepository.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteItemRepository.cs b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
index ca7b48cc6b..3de4da4447 100644
--- a/Emby.Server.Implementations/Data/SqliteItemRepository.cs
+++ b/Emby.Server.Implementations/Data/SqliteItemRepository.cs
@@ -208,6 +208,7 @@ namespace Emby.Server.Implementations.Data
AddColumn(db, "TypedBaseItems", "OwnerId", "Text", existingColumnNames);
AddColumn(db, "TypedBaseItems", "Width", "INT", existingColumnNames);
AddColumn(db, "TypedBaseItems", "Height", "INT", existingColumnNames);
+ AddColumn(db, "TypedBaseItems", "Size", "BIGINT", existingColumnNames);
existingColumnNames = GetColumnNames(db, "ItemValues");
AddColumn(db, "ItemValues", "CleanValue", "Text", existingColumnNames);
@@ -347,6 +348,7 @@ namespace Emby.Server.Implementations.Data
"OfficialRating",
"ForcedSortName",
"RunTimeTicks",
+ "Size",
"DateCreated",
"DateModified",
"guid",
@@ -459,6 +461,7 @@ namespace Emby.Server.Implementations.Data
"SortName",
"ForcedSortName",
"RunTimeTicks",
+ "Size",
"DateCreated",
"DateModified",
"PreferredMetadataLanguage",
@@ -755,6 +758,7 @@ namespace Emby.Server.Implementations.Data
saveItemStatement.TryBind("@ForcedSortName", item.ForcedSortName);
saveItemStatement.TryBind("@RunTimeTicks", item.RunTimeTicks);
+ saveItemStatement.TryBind("@Size", item.Size);
saveItemStatement.TryBind("@DateCreated", item.DateCreated);
saveItemStatement.TryBind("@DateModified", item.DateModified);
@@ -1523,6 +1527,12 @@ namespace Emby.Server.Implementations.Data
}
index++;
+ if (!reader.IsDBNull(index))
+ {
+ item.Size = reader.GetInt64(index);
+ }
+ index++;
+
if (HasField(query, ItemFields.DateCreated))
{
if (!reader.IsDBNull(index))