bitbake: Make sure tables exist when renaming
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
parent
64b04685b6
commit
ef9c095334
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue