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

Module update109

source code

Change indices for {src,bin}_contents


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

Copyright: 2015, 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:
["""
DROP INDEX IF EXISTS ind_bin_contents_binary
""", """
ALTER TABLE bin_contents
  DROP CONSTRAINT IF EXISTS bin_contents_pkey
""", """
CREATE UNIQUE INDEX bin_contents_pkey
  ON bin_contents (binary_id, file) WITH (fillfactor = 80)
...