bitbake: Make sure tables exist when renaming

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

No files matched your search

+1
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):
+1
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):