From c885d089752e90e80d6c0c94163844f89a528e86 Mon Sep 17 00:00:00 2001
From: daniel <daniel@ispconfig3>
Date: Thu, 5 Jun 2008 08:56:58 +0000
Subject: [PATCH]

---
 install/sql/ispconfig3.sql | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/install/sql/ispconfig3.sql b/install/sql/ispconfig3.sql
index 050ad4ed9c..4ba1cf61ec 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 @@ CREATE TABLE `ftp_user` (
   `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`
@@ -874,3 +880,5 @@ CREATE TABLE `attempts_login` (
   `times` tinyint(1) NOT NULL default '1',
   `login_time` timestamp NOT NULL default '0000-00-00 00:00:00'
 );
+
+SET FOREIGN_KEY_CHECKS = 1;
-- 
GitLab