print __doc__
try:
c = self.db.cursor()
- c.execute("INSERT INTO config(name, value) VALUES ('exportpath', '/srv/ftp-master.debian.org/export/changelogs')")
- c.execute("ALTER TABLE suite ADD COLUMN britney_changelog text NULL")
- c.execute("UPDATE suite SET britney_changelog = '/srv/ftp-master.debian.org/ftp/dists/testing/ChangeLog' WHERE suite_name = 'testing'")
+ c.execute("INSERT INTO config(name, value) VALUES ('exportpath', 'changelogs')")
+ c.execute("ALTER TABLE suite ADD COLUMN changelog text NULL")
+ c.execute("UPDATE suite SET changelog = 'dists/testing/ChangeLog' WHERE suite_name = 'testing'")
c.execute("UPDATE config SET value = '39' WHERE name = 'db_revision'")
self.db.commit()
- except psycopg2.ProgrammingError, msg:
+ except psycopg2.ProgrammingError as msg:
self.db.rollback()
- raise DBUpdateError, 'Unable to apply table-column update 39, rollback issued. Error message : %s' % (str(msg))
+ raise DBUpdateError('Unable to apply table-column update 39, rollback issued. Error message : %s' % (str(msg)))