banshee r3724 - in trunk/banshee: . src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data
- From: murbanski svn gnome org
- To: svn-commits-list gnome org
- Subject: banshee r3724 - in trunk/banshee: . src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data
- Date: Wed, 9 Apr 2008 06:46:35 +0100 (BST)
Author: murbanski
Date: Wed Apr 9 06:46:35 2008
New Revision: 3724
URL: http://svn.gnome.org/viewvc/banshee?rev=3724&view=rev
Log:
2008-04-09 Mike Urbanski <michael c urbanski gmail com>
* src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastFeed.cs:
Fixes table name clashes on dbs migrated from banshee 0.x. drr...
Modified:
trunk/banshee/ChangeLog
trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastFeed.cs
Modified: trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastFeed.cs
==============================================================================
--- trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastFeed.cs (original)
+++ trunk/banshee/src/Extensions/Banshee.Podcasting/Banshee.Podcasting.Data/PodcastFeed.cs Wed Apr 9 06:46:35 2008
@@ -162,21 +162,21 @@
static PodcastFeed ()
{
try {
- if (!ServiceManager.DbConnection.TableExists ("PodcastFeeds")) {
+ if (!ServiceManager.DbConnection.TableExists ("PodcastSyndications")) {
ServiceManager.DbConnection.Execute (@"
- CREATE TABLE PodcastFeeds (
+ CREATE TABLE PodcastSyndications (
ID INTEGER PRIMARY KEY,
FeedID INTEGER NOT NULL DEFAULT 0,
SyncPreference INTEGER NOT NULL DEFAULT 0
);
- CREATE INDEX podcast_feed_id_index ON PodcastFeeds(ID);
- CREATE INDEX feed_id_index ON PodcastFeeds(FeedID);
+ CREATE INDEX podcast_feed_id_index ON PodcastSyndications(ID);
+ CREATE INDEX feed_id_index ON PodcastSyndications(FeedID);
");
}
provider = new BansheeModelProvider<PodcastFeed> (
- ServiceManager.DbConnection, "PodcastFeeds"
+ ServiceManager.DbConnection, "PodcastSyndications"
);
} catch/* (Exception e)*/ { /*Console.WriteLine (e.Message);*/ throw; }
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]