entropy.db: update databaseStructureUpdates, make it always creating

the new "source" column on installedtable if the latter is present
This commit is contained in:
Fabio Erculiani
2009-04-11 17:54:18 +02:00
parent ad504754b8
commit 80fccfd1bf
+3 -4
View File
@@ -3686,10 +3686,9 @@ class LocalRepository:
(self.dbname == etpConst['clientdbid']):
self.createInstalledTable()
if self.dbname == etpConst['clientdbid']:
if not self.doesColumnInTableExist("installedtable",
"source"):
self.createInstalledTableSource()
if self.doesTableExist("installedtable") and \
not self.doesColumnInTableExist("installedtable","source"):
self.createInstalledTableSource()
if not self.doesTableExist("categoriesdescription"):
self.createCategoriesdescriptionTable()