Package dak :: Package dakdb :: Module update113
[hide private]
[frames] | no frames]

Module update113

source code

Add accept_{source,binary}_uploads to suite


Contact: Debian FTP Master <ftpmaster@debian.org>

Copyright: 2016, Ansgar Burchardt <ansgar@debian.org>

License: GNU General Public License version 2 or later

Functions [hide private]
 
do_update(self) source code
Variables [hide private]
  statements = [...

Imports: psycopg2, DBUpdateError, Config


Variables Details [hide private]

statements

Value:
["""
ALTER TABLE suite
  ADD COLUMN accept_source_uploads BOOLEAN DEFAULT TRUE,
  ADD COLUMN accept_binary_uploads BOOLEAN DEFAULT TRUE
""", """
UPDATE suite
   SET accept_source_uploads = FALSE, accept_binary_uploads = FALSE
 WHERE id IN (SELECT suite_id FROM policy_queue)
...