Signed-off-by: Joerg Jaspert <joerg@debian.org>
for arch in architectures:
c.execute(query, [suites[suite], archs[arch]])
+ c.execute("UPDATE config SET value = '4' WHERE name = 'db_revision'")
+
self.db.commit()
except psycopg2.ProgrammingError, msg:
sys.exit(0)
for i in range (database_revision, required_database_schema):
- print "updating databse schema from " + str(database_revision) + " to " + str(i+1)
+ print "updating database schema from " + str(database_revision) + " to " + str(i+1)
try:
dakdb = __import__("dakdb", globals(), locals(), ['update'+str(i+1)])
update_module = getattr(dakdb, "update"+str(i+1))