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

Module update115

source code

Add last_changed 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 last_changed TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
""", """
COMMENT ON COLUMN suite.last_changed
  IS 'When the suite was last changed by adding/removing packages and \
needs to be republished'
"""]