aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Data/SqliteItemRepository.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2019-01-31 18:44:36 +0100
committerGitHub <noreply@github.com>2019-01-31 18:44:36 +0100
commit2a1f6361a5fea4d00888446b736829e341982f35 (patch)
treeb8962a7bd7f0926366fcbd57b8e353b2ab927a5f /Emby.Server.Implementations/Data/SqliteItemRepository.cs
parent055e43eda72dbf77a91ca22b5b007161c9d75c46 (diff)
parentffcf6bdd3aaad5068decf84b0400e433fdb8323c (diff)
Merge branch 'master' into locale
Diffstat (limited to 'Emby.Server.Implementations/Data/SqliteItemRepository.cs')
-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 ca7b48cc6..3de4da444 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))