mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
bitbake: Make sure tables exist when renaming
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user