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