From 920d911bdbf68098827e050ec4d1b59a1fa8f419 Mon Sep 17 00:00:00 2001 From: Mike O'Connor Date: Thu, 29 Oct 2009 16:06:23 +0000 Subject: [PATCH] adding grants Signed-off-by: Mike O'Connor --- dak/dakdb/update17.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dak/dakdb/update17.py b/dak/dakdb/update17.py index 0d7efa9e..b5bbb3cc 100644 --- a/dak/dakdb/update17.py +++ b/dak/dakdb/update17.py @@ -52,6 +52,9 @@ def do_update(self): c.execute("""CREATE INDEX ind_bin_contents_binary ON bin_contents(binary_id);""" ) + c.execute("GRANT ALL ON bin_contents TO ftpmaster;") + c.execute("GRANT SELECT ON bin_contents TO public;") + self.db.commit() except psycopg2.ProgrammingError, msg: -- 2.39.5