Skip to content

Commit

Permalink
Added new table "saved" with its various fields
Browse files Browse the repository at this point in the history
Added new field to surveys table - "allowsave"


git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1150 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Sep 1, 2004
1 parent 923ca67 commit fcf4425
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion admin/checkfields.php
Expand Up @@ -39,14 +39,23 @@
sendcacheheaders();

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

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

//FIELDS THAT SHOULD EXIST
$allfields[]=array("{$dbprefix}labelsets", "lid", "lid int(11) NOT NULL auto_increment");
Expand Down Expand Up @@ -116,6 +125,18 @@
$allfields[]=array("{$dbprefix}surveys", "email_remind", "email_remind text");
$allfields[]=array("{$dbprefix}surveys", "email_register", "email_register text");
$allfields[]=array("{$dbprefix}surveys", "email_confirm", "email_confirm text");
$allfields[]=array("{$dbprefix}surveys", "allowsave","allowsave char(1) default 'Y'");

$allfields[]=array("{$dbprefix}saved", "saved_id", "saved_id int(11) NOT NULL auto_increment");
$allfields[]=array("{$dbprefix}saved", "sid", "sid int(11) NOT NULL default '0'");
$allfields[]=array("{$dbprefix}saved", "saved_thisstep", "saved_thisstep text NOT NULL");
$allfields[]=array("{$dbprefix}saved", "saved_ip", "saved_ip text NOT NULL");
$allfields[]=array("{$dbprefix}saved", "saved_date", "saved_date datetime NOT NULL default '0000-00-00 00:00:00'");
$allfields[]=array("{$dbprefix}saved", "identifier", "identifier text NOT NULL");
$allfields[]=array("{$dbprefix}saved", "access_code", "access_code text NOT NULL");
$allfields[]=array("{$dbprefix}saved", "fieldname", "fieldname text NOT NULL");
$allfields[]=array("{$dbprefix}saved", "value", "value text NOT NULL");

echo $htmlheader;

echo "<br />\n";
Expand Down

0 comments on commit fcf4425

Please sign in to comment.