Skip to content

Commit

Permalink
Added "preg" field in questions table, also added variable for determ…
Browse files Browse the repository at this point in the history
…ining table type (isam or innodb) - see new config.php

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1122 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Aug 18, 2004
1 parent a62f9f4 commit f8db6ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/checkfields.php
Expand Up @@ -85,6 +85,7 @@
$allfields[]=array("{$dbprefix}questions", "type", "type char(1) NOT NULL default 'T'");
$allfields[]=array("{$dbprefix}questions", "title", "title varchar(20) NOT NULL default ''");
$allfields[]=array("{$dbprefix}questions", "question", "question text NOT NULL");
$allfields[]=array("{$dbprefix}questions", "preg", "preg text");
$allfields[]=array("{$dbprefix}questions", "help", "help text");
$allfields[]=array("{$dbprefix}questions", "other", "other char(1) NOT NULL default 'N'");
$allfields[]=array("{$dbprefix}questions", "mandatory", "mandatory char(1) default NULL");
Expand Down Expand Up @@ -156,7 +157,7 @@
}
$ctquery = substr($ctquery, 0, -2);
$ctquery .= ")\n";
$ctquery .= "TYPE=MyISAM\n";
$ctquery .= "TYPE=$databasetabletype\n";
$ctresult=mysql_query($ctquery) or die ("Couldn't create $at table<br />$ctquery<br />".mysql_error());
echo "&nbsp;&nbsp;&nbsp;&nbsp;<font color='red'>"._CF_TABLECREATED."! ($at)</font><br />\n";
}
Expand Down

0 comments on commit f8db6ee

Please sign in to comment.