From f8db6ee4cc8e0252e80c122b626c87b61763146a Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Wed, 18 Aug 2004 04:31:35 +0000 Subject: [PATCH] Added "preg" field in questions table, also added variable for determining 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 --- admin/checkfields.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/checkfields.php b/admin/checkfields.php index a839184c759..59d7271b087 100644 --- a/admin/checkfields.php +++ b/admin/checkfields.php @@ -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"); @@ -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
$ctquery
".mysql_error()); echo "    "._CF_TABLECREATED."! ($at)
\n"; }