[banshee] [Migo] Change default MaxItemCount to 0



commit a6b72d25efe6cca9ad8d2996390a8578e2420a04
Author: Gabriel Burt <gabriel burt gmail com>
Date:   Thu Dec 9 16:41:04 2010 -0600

    [Migo] Change default MaxItemCount to 0
    
    We will use this value to auto-archive episodes.

 src/Libraries/Migo/Migo.Syndication/Feed.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/Libraries/Migo/Migo.Syndication/Feed.cs b/src/Libraries/Migo/Migo.Syndication/Feed.cs
index 0a0f38f..93733c8 100644
--- a/src/Libraries/Migo/Migo.Syndication/Feed.cs
+++ b/src/Libraries/Migo/Migo.Syndication/Feed.cs
@@ -77,7 +77,7 @@ namespace Migo.Syndication
         }
 
         protected override int ModelVersion {
-            get { return 3; }
+            get { return 4; }
         }
 
         protected override void MigrateTable (int old_version)
@@ -91,6 +91,10 @@ namespace Migo.Syndication
             if (old_version < 3) {
                 CreateIndex ("PodcastSyndicationsIndex", "IsSubscribed, Title");
             }
+
+            if (old_version < 4) {
+                Connection.Execute (String.Format ("UPDATE {0} SET MaxItemCount=0 WHERE MaxItemCount=200", TableName));
+            }
         }
     }
 
@@ -129,7 +133,7 @@ namespace Migo.Syndication
         private string link;
         //private string local_enclosure_path;
         private long dbid = -1;
-        private long maxItemCount = 200;
+        private long maxItemCount = 0;
         private DateTime pubDate;
         private FeedSyncSetting syncSetting;
         private string title;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]