Тема: Проблема с импортом БД (sqlbuddy>phpMyAdmin)
Недавно передали проект для небольших изменений, БД экспортировали из sqlbuddy, но появилась проблема с одной конкретной таблицей, при её импорте возникает ошибка:
#1170 - BLOB/TEXT column 'introtext' used in key specification without a key length
Если я правильно поняла, то дело в параметрах колонки introtext, но к сожалению не могу ничего придумать для исправления данной ошибки, совсем в этом не разбираюсь, а сделать надо сегодня. Вот сама таблица:
CREATE TABLE `tsb79_k2_items` (
`id` int(11) not null auto_increment,
`title` varchar(255) not null,
`alias` varchar(255),
`catid` int(11) not null,
`published` smallint(6) not null default '0',
`introtext` mediumtext not null,
`fulltext` mediumtext not null,
`video` text,
`gallery` varchar(255),
`extra_fields` text,
`extra_fields_search` text not null,
`created` datetime not null,
`created_by` int(11) not null default '0',
`created_by_alias` varchar(255) not null,
`checked_out` int(10) unsigned not null,
`checked_out_time` datetime not null,
`modified` datetime not null,
`modified_by` int(11) not null default '0',
`publish_up` datetime not null,
`publish_down` datetime not null,
`trash` smallint(6) not null default '0',
`access` int(11) not null default '0',
`ordering` int(11) not null default '0',
`featured` smallint(6) not null default '0',
`featured_ordering` int(11) not null default '0',
`image_caption` text not null,
`image_credits` varchar(255) not null,
`video_caption` text not null,
`video_credits` varchar(255) not null,
`hits` int(10) unsigned not null,
`params` text not null,
`metadesc` text not null,
`metadata` text not null,
`metakey` text not null,
`plugins` text not null,
`language` char(7) not null,
PRIMARY KEY (`id`),
KEY `item` (`published`,`publish_up`,`publish_down`,`trash`,`access`),
KEY `catid` (`catid`),
KEY `created_by` (`created_by`),
KEY `ordering` (`ordering`),
KEY `featured` (`featured`),
KEY `featured_ordering` (`featured_ordering`),
KEY `hits` (`hits`),
KEY `created` (`created`),
KEY `language` (`language`),
KEY `search` (`title`,`introtext`,`fulltext`,`extra_fields_search`,`image_caption`,`image_credits`,`video_caption`,`video_credits`,`metadesc`,`metakey`),
KEY `title` (`title`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=17;