entropy.db: counters table now mandatory

This commit is contained in:
Fabio Erculiani
2009-05-30 21:56:10 +02:00
parent c35497d7b0
commit e91ec0e6f0
-7
View File
@@ -3809,9 +3809,6 @@ class LocalRepository:
(self.dbname == etpConst['clientdbid']):
self.createLicensesAcceptedTable()
if not self.doesTableExist("counters"):
self.createCountersTable()
if not self.doesTableExist("installedtable") and \
(self.dbname == etpConst['clientdbid']):
self.createInstalledTable()
@@ -4201,10 +4198,6 @@ class LocalRepository:
except:
return ""
def createCountersTable(self):
with self.__write_mutex:
self.cursor.execute("CREATE TABLE IF NOT EXISTS counters ( counter INTEGER, idpackage INTEGER PRIMARY KEY, branch VARCHAR );")
def dropAllIndexes(self):
self.cursor.execute('SELECT name FROM SQLITE_MASTER WHERE type = "index"')
indexes = self.fetchall2set(self.cursor.fetchall())