From 8b5ccd302bd1497de721a25e4ce086bebf95173f Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sun, 08 Jun 2008 15:32:42 -0400
Subject: [PATCH] Fixed a problem with the logout when the php session has ended.

---
 install/sql/ispconfig3.sql |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/install/sql/ispconfig3.sql b/install/sql/ispconfig3.sql
index 228c931..a716547 100644
--- a/install/sql/ispconfig3.sql
+++ b/install/sql/ispconfig3.sql
@@ -16,6 +16,8 @@
 -- Tabellenstruktur f�r Tabelle `client`
 -- 
 
+SET FOREIGN_KEY_CHECKS = 0;
+
 CREATE TABLE `client` (
   `client_id` bigint(20) NOT NULL auto_increment,
   `sys_userid` int(11) NOT NULL default '0',
@@ -158,8 +160,12 @@
   `dl_ratio` int(11) NOT NULL default '-1',
   `ul_bandwidth` int(11) NOT NULL default '-1',
   `dl_bandwidth` int(11) NOT NULL default '-1',
-  PRIMARY KEY  (`ftp_user_id`)
-) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+  PRIMARY KEY  (`ftp_user_id`),
+  KEY `active` (`active`),
+  KEY `server_id` (`server_id`),
+  KEY `username` (`username`),
+  KEY `quota_files` (`quota_files`)
+) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=latin1;
 
 -- 
 -- Daten f�r Tabelle `ftp_user`
@@ -487,7 +493,7 @@
   `updated` tinyint(4) NOT NULL default '0',
   `active` tinyint(4) NOT NULL default '1',
   PRIMARY KEY  (`server_id`)
-) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=3 ;
+) ENGINE=MyISAM  DEFAULT CHARSET=latin1;
 
 -- 
 -- Daten f�r Tabelle `server`
@@ -518,7 +524,6 @@
 
 -- --------------------------------------------------------
 
-
 CREATE TABLE `shell_user` (
   `shell_user_id` bigint(20) NOT NULL auto_increment,
   `sys_userid` int(11) NOT NULL default '0',
@@ -536,8 +541,10 @@
   `pgroup` varchar(255) default NULL,
   `shell` varchar(255) NOT NULL default '/bin/bash',
   `dir` varchar(255) default NULL,
+  `chroot` varchar(255) NOT NULL,
   PRIMARY KEY  (`shell_user_id`)
-) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
+) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
+
 
 -- 
 -- Daten f�r Tabelle `shell_user`
@@ -874,3 +881,5 @@
   `times` tinyint(1) NOT NULL default '1',
   `login_time` timestamp NOT NULL default '0000-00-00 00:00:00'
 );
+
+SET FOREIGN_KEY_CHECKS = 1;

--
Gitblit v1.9.1