Commit 94c7d4f7 authored by Robert Ricci's avatar Robert Ricci

Wrap database update in a DBSlotExists() check to avoid adding it

if someone has already done so
parent 59c07f6f
......@@ -8,8 +8,10 @@ sub DoUpdate($$$)
# Add a new column to the sitevariables table
if (!DBSlotExists("sitevariables", "ns_include")) {
DBQueryFatal("alter table sitevariables add column ns_include " .
"tinyint(0) NOT NULL default 0");
return 0;
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