Commit 8700c093 authored by Mike Hibler's avatar Mike Hibler

More chicken and egg.

We had a special hack to make sure general/testbed_shutdown sitevar exists,
however we were trying to initialize the ns_include column that doesn't
exist til DB update 191.  Now we just explicitly set known-to-exist columns.
parent 17d66134
......@@ -143,11 +143,13 @@ my @INCDIRS = ("-I${objdir}", "-I${objdir}/../tbsetup",
);
# Chicken or Egg.
DBQueryFatal("INSERT INTO sitevariables VALUES ".
# XXX only set specific fields as the ns_include field may not be there yet.
DBQueryFatal("INSERT INTO sitevariables (name,value,defaultvalue,description)".
" VALUES ".
" ('general/testbed_shutdown',NULL,'0', ".
" 'Non-zero value indicates that the testbed is shutdown ".
"and scripts should not do anything when they run. ".
"DO NOT SET THIS BY HAND!', 0)")
"DO NOT SET THIS BY HAND!')")
if (!SiteVarExists("general/testbed_shutdown"));
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment