X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate29.py;h=c77d99dad5229510534fd08ffc773914b7d71ba4;hb=87ec06f63327126b9200bf5f00fb4e29a481b13c;hp=891fcf2feae141efd2315c6b5828b156009383b3;hpb=f90df828922ffa76826827203ccdc7f451db61f0;p=dak.git diff --git a/dak/dakdb/update29.py b/dak/dakdb/update29.py index 891fcf2f..c77d99da 100644 --- a/dak/dakdb/update29.py +++ b/dak/dakdb/update29.py @@ -41,12 +41,12 @@ def do_update(self): c.execute("""DROP FUNCTION comma_concat(text, text) CASCADE;""" ); c.execute("""DROP TABLE pending_content_associations;""") c.execute("""DROP TABLE content_associations;""") - c.execute("""DROP TABLE content_filecd ._names;""") + c.execute("""DROP TABLE content_file_names;""") c.execute("""DROP TABLE content_file_paths;""") c.execute("UPDATE config SET value = '29' WHERE name = 'db_revision'") self.db.commit() - except psycopg2.ProgrammingError, msg: + except psycopg2.ProgrammingError as msg: self.db.rollback() - raise DBUpdateError, "Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg)) + raise DBUpdateError("Unable to appy debversion updates, rollback issued. Error message : %s" % (str(msg)))