bitbake: Make sure tables exist when renaming

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie 2009-07-30 18:03:51 +01:00
parent 64b04685b6
commit ef9c095334
2 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ class PersistData:
"""
self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain)
self.addDomain(domain)
self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain))
def getKeyValues(self, domain):

View File

@ -76,6 +76,7 @@ class PersistData:
"""
self.connection.execute("DROP TABLE IF EXISTS %s;" % newdomain)
self.addDomain(domain)
self.connection.execute("ALTER TABLE %s RENAME TO %s;" % (domain, newdomain))
def getKeyValues(self, domain):