Fixed database upgrade when not using the widget
authorYves Marcoz <yves@marcoz.org>
Tue, 10 Aug 2010 14:27:55 +0000 (07:27 -0700)
committerYves Marcoz <yves@marcoz.org>
Tue, 10 Aug 2010 14:27:55 +0000 (07:27 -0700)
src/rss_sqlite.py

index c248c73..fc8a4cd 100644 (file)
@@ -403,7 +403,7 @@ class Listing:
             else:
                 from string import find, upper
                 if find(upper(table[0]), "WIDGET")<0:
-                    self.db.execute("ALTER TABLE feeds ADD COLUMN (widget int);")
+                    self.db.execute("ALTER TABLE feeds ADD COLUMN widget int;")
                     self.db.execute("UPDATE feeds SET widget=1;")
                     self.db.commit()
         except: