From: Joerg Jaspert Date: Mon, 7 Feb 2011 20:49:48 +0000 (+0100) Subject: for some reason psql likes ; more than : X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=751290406f5d2cd3ed72a7a8bbd06f78e2ed0555;p=dak for some reason psql likes ; more than : Signed-off-by: Joerg Jaspert --- diff --git a/dak/dakdb/update42.py b/dak/dakdb/update42.py index 8e8f7c56..48bc9d61 100755 --- a/dak/dakdb/update42.py +++ b/dak/dakdb/update42.py @@ -39,7 +39,7 @@ def do_update(self): c = self.db.cursor() c.execute("ALTER TABLE suite ADD COLUMN butautomaticupgrades BOOLEAN NOT NULL DEFAULT FALSE;") - c.execute("ALTER TABLE suite ADD CONSTRAINT bau_needs_na_set CHECK (not butautomaticupgrades or notautomatic):") + c.execute("ALTER TABLE suite ADD CONSTRAINT bau_needs_na_set CHECK (not butautomaticupgrades or notautomatic);") c.execute("UPDATE config SET value = '42' WHERE name = 'db_revision'") self.db.commit()