From b9c8a6c4c0245db0515a164f1b89247688e3b4fa Mon Sep 17 00:00:00 2001 From: Tim Laszlo Date: Fri, 1 Jun 2012 09:00:00 -0500 Subject: DBStats: New db update routines Replace updatefix.py with the Updater class. This streamlines some of the common tasks and groups database updates by release. Upgrades from pre 1.1.x are no longer supported. --- src/lib/Bcfg2/Server/Reports/Updater/Changes/1_2_x.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/lib/Bcfg2/Server/Reports/Updater/Changes/1_2_x.py (limited to 'src/lib/Bcfg2/Server/Reports/Updater/Changes/1_2_x.py') diff --git a/src/lib/Bcfg2/Server/Reports/Updater/Changes/1_2_x.py b/src/lib/Bcfg2/Server/Reports/Updater/Changes/1_2_x.py new file mode 100644 index 000000000..22bd937c2 --- /dev/null +++ b/src/lib/Bcfg2/Server/Reports/Updater/Changes/1_2_x.py @@ -0,0 +1,15 @@ +""" +1_2_x.py + +This file should contain updates relevant to the 1.2.x branches ONLY. +The updates() method must be defined and it should return an Updater object +""" +from Bcfg2.Server.Reports.Updater import Updater +from Bcfg2.Server.Reports.Updater.Routines import updatercallable + +def updates(): + fixes = Updater("1.2") + fixes.override_base_version(18) # Do not do this in new code + fixes.add('alter table reports_reason add is_sensitive bool NOT NULL default False;') + return fixes + -- cgit v1.2.3-1-g7c22