Zitat
Notice: Undefined index: version in /home/u449906031/public_html/application/modules/install/controllers/Index.php on line 381
An unexpected error occurred:
MySQL Error: Specified key was too long; max key length is 1000 bytes
in Query[SubQuery 20]: CREATE TABLE IF NOT EXISTS `ilch_groups` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=2;
CREATE TABLE IF NOT EXISTS `ilch_users` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`password` VARCHAR(255) NOT NULL,
`email` VARCHAR(255) NOT NULL,
`first_name` VARCHAR(255) NOT NULL DEFAULT "",
`last_name` VARCHAR(255) NOT NULL DEFAULT "",
`homepage` VARCHAR(255) NOT NULL DEFAULT "",
`facebook` VARCHAR(255) NOT NULL DEFAULT "",
`twitter` VARCHAR(255) NOT NULL DEFAULT "",
`google` VARCHAR(255) NOT NULL DEFAULT "",
`city` VARCHAR(255) NOT NULL DEFAULT "",
`birthday` DATE NULL DEFAULT NULL,
`avatar` VARCHAR(255) NOT NULL DEFAULT "",
`signature` VARCHAR(255) NOT NULL DEFAULT "",
`opt_gallery` INT(11) DEFAULT 1,
`date_created` DATETIME NOT NULL,
`date_confirmed` DATETIME NULL DEFAULT NULL,
`date_last_activity` DATETIME NULL DEFAULT NULL,
`confirmed` INT(11) DEFAULT 1,
`confirmed_code` VARCHAR(255) NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_users_groups` (
`user_id` INT(11) NOT NULL,
`group_id` INT(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `ilch_groups_access` (
`group_id` INT(11) NOT NULL,
`page_id` INT(11) DEFAULT 0,
`module_key` VARCHAR(255) DEFAULT 0,
`article_id` INT(11) DEFAULT 0,
`box_id` INT(11) DEFAULT 0,
`access_level` INT(11) DEFAULT 0,
PRIMARY KEY (`group_id`, `page_id`, `module_key`, `article_id`, `box_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `ilch_profile_content` (
`user_id` INT(11) NOT NULL,
`field_id` INT(11) NOT NULL,
`value` VARCHAR(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `ilch_profile_fields` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` VARCHAR(255) NOT NULL,
`type` INT(11) NOT NULL,
`position` INT(11) UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_user_menu` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`key` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_user_menu_settings_links` (
`key` VARCHAR(255) NOT NULL,
`locale` VARCHAR(255) NOT NULL,
`description` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `ilch_users_dialog` (
`c_id` INT(10) NOT NULL AUTO_INCREMENT,
`user_one` INT(10) UNSIGNED NOT NULL,
`user_two` INT(10) UNSIGNED NOT NULL,
`time` DATETIME NOT NULL,
PRIMARY KEY (`c_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_users_dialog_reply` (
`cr_id` INT(10) NOT NULL AUTO_INCREMENT,
`reply` TEXT,
`user_id_fk` INT(10) unsigned NOT NULL,
`c_id_fk` INT(10) NOT NULL,
`time` DATETIME NOT NULL,
`read` INT(11) DEFAULT 0,
PRIMARY KEY (`cr_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_users_media` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`user_id` INT(11) NOT NULL,
`name` VARCHAR(50) NOT NULL DEFAULT 0,
`url` VARCHAR(150) NOT NULL DEFAULT 0,
`url_thumb` VARCHAR(150) NOT NULL DEFAULT 0,
`ending` VARCHAR(5) NOT NULL DEFAULT 0,
`datetime` DATETIME NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_users_gallery_imgs` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`user_id` INT(11) NOT NULL,
`image_id` VARCHAR(150)NOT NULL,
`image_title` VARCHAR(255) NOT NULL,
`image_description` VARCHAR(255) NOT NULL,
`cat` MEDIUMINT(9) NOT NULL DEFAULT 0,
`visits` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_users_gallery_items` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`user_id` INT(11) NOT NULL,
`gallery_id` INT(11) NOT NULL,
`sort` INT(11) NOT NULL,
`parent_id` INT(11) NOT NULL,
`type` INT(11) NOT NULL,
`title` VARCHAR(255) NOT NULL,
`description` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_profile_trans` (
`field_id` INT(11) NOT NULL,
`locale` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `ilch_auth_tokens` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`selector` CHAR(12),
`token` CHAR(64),
`userid` INT(11) UNSIGNED NOT NULL,
`expires` DATETIME,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
CREATE TABLE IF NOT EXISTS `ilch_cookie_stolen` (
`id` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`userid` INT(11) UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1;
INSERT INTO `ilch_groups` (`id`, `name`) VALUES
(1, "Administrator"),(2, "User"),(3, "Guest");
INSERT INTO `ilch_user_menu` (`id`, `key`) VALUES
(1, "user/panel/index"),
(2, "user/panel/dialog"),
(3, "user/panel/gallery"),
(4, "user/panel/settings");
CREATE TABLE IF NOT EXISTS `ilch_auth_providers` (
`key` varchar(45) NOT NULL,
`name` varchar(255) NOT NULL,
`icon` varchar(255) DEFAULT NULL,
`module` varchar(255) DEFAULT NULL,
PRIMARY KEY (`key`),
UNIQUE KEY `key_UNIQUE` (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `ilch_auth_providers_modules` (
`module` varchar(255) NOT NULL,
`provider` varchar(255) NOT NULL,
`auth_controller` varchar(255) DEFAULT NULL,
`auth_action` varchar(255) DEFAULT NULL,
`unlink_controller` varchar(255) DEFAULT NULL,
`unlink_action` varchar(255) DEFAULT NULL,
PRIMARY KEY (`module`,`provider`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
CREATE TABLE IF NOT EXISTS `ilch_users_auth_providers` (
`user_id` int(11) NOT NULL,
`provider` varchar(255) NOT NULL,
`identifier` varchar(255) NOT NULL,
`screen_name` varchar(255) DEFAULT NULL,
`oauth_token` varchar(255) DEFAULT NULL,
`oauth_token_secret` varchar(255) DEFAULT NULL,
`created_at` varchar(45) DEFAULT NULL,
PRIMARY KEY (`user_id`,`provider`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;