Skip to content

Commit

Permalink
Updated mySQL create script.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/phpsurveyor@1941 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
c-schmitz committed Aug 18, 2006
1 parent c8bdef7 commit 07c690b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
21 changes: 19 additions & 2 deletions admin/install/create-mysql.sql
Expand Up @@ -60,7 +60,6 @@ CREATE TABLE `prefix_conditions` (
PRIMARY KEY (`cid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

-- --------------------------------------------------------

--
-- Table structure for table `groups`
Expand All @@ -72,6 +71,7 @@ CREATE TABLE `prefix_groups` (
`group_name` varchar(100) NOT NULL default '',
`group_order` varchar(45) default NULL,
`description` text,
`sortorder` varchar(5) default NULL,
PRIMARY KEY (`gid`)
) TYPE=MyISAM AUTO_INCREMENT=1 ;

Expand Down Expand Up @@ -201,10 +201,10 @@ CREATE TABLE `prefix_surveys` (
`ipaddr` char(1) default 'N',
`useexpiry` char(1) NOT NULL default 'N',
`refurl` char(1) default 'N',
`datecreated` date default NULL,
PRIMARY KEY (`sid`)
) TYPE=MyISAM;

-- --------------------------------------------------------

--
-- Table structure for table `users`
Expand All @@ -215,3 +215,20 @@ CREATE TABLE `prefix_users` (
`password` varchar(20) NOT NULL default '',
`security` varchar(10) NOT NULL default ''
) TYPE=MyISAM;

--
-- Table structure for table `settings_global`
--

CREATE TABLE `prefix_settings_global` (
`stg_name` varchar(50) NOT NULL default '',
`stg_value` varchar(255) NOT NULL default '',
PRIMARY KEY (`stg_name`)
) TYPE=MyISAM;

--
-- Table `settings_global`
--

INSERT INTO `settings_global` VALUES ('DBVersion', '108');

2 changes: 1 addition & 1 deletion admin/install/upgrade-mysql.php
Expand Up @@ -236,7 +236,7 @@ function mysqlcheckfields()
}
}

modify_database('','insert '.$dbprefix.'settings_global values("DBVersion","'.$dbversionnumber.'")');
modify_database('','insert '.$dbprefix.'settings_global values("DBVersion","108")');
echo "</font></font></font></td></tr>\n";
echo "<tr><td align='center' bgcolor='#CCCCCC'>\n";
echo "<input type='submit' value='"._("Main Admin Screen")."' onClick=\"window.open('admin.php', '_top')\">\n";
Expand Down

0 comments on commit 07c690b

Please sign in to comment.