Commit 892fef45 authored by Chad Barb's avatar Chad Barb

Added 'sitevariables' table.

This is the table prompted by Mac's email yesterday, which
can contain site-specific configuration options.

'default' _must_ be set for each row, and will be used if
'value' is NULL.

'description' _should_ be set for each row.

The table doesn't have a primary key, but is indexed to
32 characters on the "name" column, so it should be plenty efficient.

libdb functions and web interface forthcoming...
parent d881e036
......@@ -904,6 +904,18 @@ CREATE TABLE scheduled_reloads (
PRIMARY KEY (node_id)
) TYPE=MyISAM;
--
-- Table structure for table 'sitevariables'
--
CREATE TABLE sitevariables (
name text NOT NULL,
value text,
defaultvalue text NOT NULL,
description text,
KEY name (name(32))
) TYPE=MyISAM;
--
-- Table structure for table 'state_timeouts'
--
......
......@@ -139,3 +139,16 @@ last_net_act,last_cpu_act,last_ext_act);
These fields had never been used, so the type change and init
are okay.
1.223: Create empty 'sitevariables' table with the following schema:
CREATE TABLE sitevariables (
name text NOT NULL,
value text,
defaultvalue text NOT NULL,
description text,
KEY name (name(32))
) TYPE=MyISAM;
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