From 5b8fd8cb103f31ef0d67c0fd4bbedfec0988c6af Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Tue, 13 Jan 2009 20:00:16 +0000 Subject: Add support for alternate VCS backends git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5023 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Reports/updatefix.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/lib/Server/Reports/updatefix.py') diff --git a/src/lib/Server/Reports/updatefix.py b/src/lib/Server/Reports/updatefix.py index f3679892e..4a35c31ea 100644 --- a/src/lib/Server/Reports/updatefix.py +++ b/src/lib/Server/Reports/updatefix.py @@ -60,6 +60,8 @@ _fixes = [_merge_database_table_entries, "drop table reports_repository;", "drop table reports_metadata;", "alter table reports_interaction add server varchar(256) not null default 'N/A';", + # fix revision data type to support $VCS hashes + "alter table reports_interaction add repo_rev_code varchar(64) default '';", ] # this will calculate the last possible version of the database @@ -95,7 +97,7 @@ def dosync(): # if we get here with no error then the database has existing tables fresh = False except: - logger.debug("there was an error while detecting the freshnest of the database") + logger.debug("there was an error while detecting the freshness of the database") #we should get here if the database is new fresh = True -- cgit v1.2.3-1-g7c22