Skip to content

Commit

Permalink
Added two tables - labelsets and labels, modified questions table to …
Browse files Browse the repository at this point in the history
…include lid - reference to Label-ID

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@550 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jul 20, 2003
1 parent 652588a commit ff7a729
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion admin/checkfields.php
Expand Up @@ -5,15 +5,24 @@
sendcacheheaders();

//TABLES THAT SHOULD EXIST
$alltables=array("surveys", "groups", "questions", "answers", "conditions", "users");
$alltables=array("surveys", "groups", "questions", "answers", "conditions", "users", "labelsets", "labels");

//KEYS
$keyinfo[]=array("surveys", "sid");
$keyinfo[]=array("groups", "gid");
$keyinfo[]=array("questions", "qid");
$keyinfo[]=array("conditions", "cid");
$keyinfo[]=array("labelsets", "lid");

//FIELDS THAT SHOULD EXIST
$allfields[]=array("labelsets", "lid", "lid int(11) NOT NULL auto_increment");
$allfields[]=array("labelsets", "label_name", "label_name varchar(100) NOT NULL default ''");

$allfields[]=array("labels", "lid", "lid int(11) NOT NULL default '0'");
$allfields[]=array("labels", "code", "code varchar(5) NOT NULL default ''");
$allfields[]=array("labels", "title", "title varchar(50) NOT NULL default ''");
$allfields[]=array("labels", "sortorder", "sortorder varchar(5) NULL");

$allfields[]=array("users", "user", "user varchar(20) NOT NULL default ''");
$allfields[]=array("users", "password", "password varchar(20) NOT NULL default ''");
$allfields[]=array("users", "security", "security varchar(10) NOT NULL default ''");
Expand Down Expand Up @@ -45,6 +54,7 @@
$allfields[]=array("questions", "help", "help text");
$allfields[]=array("questions", "other", "other char(1) NOT NULL default 'N'");
$allfields[]=array("questions", "mandatory", "mandatory char(1) default NULL");
$allfields[]=array("lid", "lid", "lid int(11) NOT NULL default '0'");

$allfields[]=array("surveys", "sid", "sid int(11) NOT NULL auto_increment");
$allfields[]=array("surveys", "short_title", "short_title varchar(50) NOT NULL default ''");
Expand Down

0 comments on commit ff7a729

Please sign in to comment.