summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/updatefix.py
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-01-13 20:00:16 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-01-13 20:00:16 +0000
commit5b8fd8cb103f31ef0d67c0fd4bbedfec0988c6af (patch)
tree42156b849284060c18d5e19b893473b4375dca7a /src/lib/Server/Reports/updatefix.py
parent95e0e4207468efc253aabe0d36dfb816aac59653 (diff)
downloadbcfg2-5b8fd8cb103f31ef0d67c0fd4bbedfec0988c6af.tar.gz
bcfg2-5b8fd8cb103f31ef0d67c0fd4bbedfec0988c6af.tar.bz2
bcfg2-5b8fd8cb103f31ef0d67c0fd4bbedfec0988c6af.zip
Add support for alternate VCS backends
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5023 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server/Reports/updatefix.py')
-rw-r--r--src/lib/Server/Reports/updatefix.py4
1 files changed, 3 insertions, 1 deletions
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