X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fdakdb%2Fupdate4.py;h=477944c830408548367e13710495bd26084bb905;hb=ec44bcc3b4bbeb7a389dda77f39ff54436d1b181;hp=88f8f86730848dd895090a63b94d162664866739;hpb=91b5a6f93c80cdf3f5cb719a074ccdce9b9cb204;p=dak.git diff --git a/dak/dakdb/update4.py b/dak/dakdb/update4.py index 88f8f867..477944c8 100755 --- a/dak/dakdb/update4.py +++ b/dak/dakdb/update4.py @@ -1,12 +1,10 @@ #!/usr/bin/env python - """ -Database Update Script - Get suite_architectures table use sane values +Get suite_architectures table use sane values @contact: Debian FTP Master @copyright: 2009 Joerg Jaspert @license: GNU General Public License version 2 or later - """ # This program is free software; you can redistribute it and/or modify @@ -62,6 +60,8 @@ def do_update(self): 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: