After updating from 2.1.x to 2.2.1 I get the following error while trying to save a section containing sort_order:
Symphony Fatal Database Error: Can't DROP 'unique'; check that column/key exists
An error occurred while attempting to execute the following query
ALTER TABLE `sym_entries_data_48` DROP INDEX `unique`;
Backtrace
[/…/symphony/lib/toolkit/class.mysql.php:515]
MySQL->__error();
[/…/extensions/order_entries/fields/field.order_entries.php:243]
MySQL->query();
[/…/extensions/order_entries/fields/field.order_entries.php:276]
fieldOrder_Entries->updateFilterTable();
[/…/symphony/content/content.blueprintssections.php:787]
fieldOrder_Entries->commit();
[/…/symphony/content/content.blueprintssections.php:883]
contentBlueprintsSections->__actionNew();
[/…/symphony/lib/toolkit/class.administrationpage.php:705]
contentBlueprintsSections->__actionEdit();
[/…/symphony/lib/toolkit/class.administrationpage.php:668]
AdministrationPage->__switchboard();
[/…/symphony/lib/toolkit/class.administrationpage.php:450]
AdministrationPage->action();
[/…/symphony/content/content.blueprintssections.php:26]
AdministrationPage->build();
[/…/symphony/lib/core/class.administration.php:212]
contentBlueprintsSections->build();
[/…/symphony/lib/core/class.administration.php:490]
Administration->__buildPage();
[/…/symphony/lib/boot/func.utilities.php:232]
Administration->display();
[/…/symphony/lib/boot/func.utilities.php:212]
symphony_launcher();
[/…/index.php:17]
symphony();
Database Query Log
[0.0001] SET character_set_connection = 'utf8', character_set_database = 'utf8', character_set_server = 'utf8';
[0.0001] SET CHARACTER SET 'utf8';
[0.0001] SET time_zone = '+02:00';
[0.0021] SELECT SQL_CACHE t1.name, t2.page, t2.delegate, t2.callback FROM `sym_extensions` as t1 INNER JOIN `sym_extensions_delegates` as t2 ON t1.id = t2.extension_id WHERE t1.status = 'enabled' ORDER BY t2.delegate, t1.name;
[0.0006] SELECT SQL_CACHE `name` FROM `sym_extensions` WHERE `status` = 'enabled';
[0.0003] SELECT SQL_CACHE `session_data` FROM `sym_sessions` WHERE `session` = 'c4135e6a72979b8ab6501b0a056a7b79' LIMIT 1;
[0.0003] SELECT SQL_CACHE a.* FROM `sym_authors` AS `a` WHERE `username` = 'goldwiege' ORDER BY a.id ASC LIMIT 1;
[0.0002] UPDATE sym_authors SET `last_seen` = '2015-07-14 09:36:15' WHERE `id` = 1;
[0.0005] SELECT SQL_CACHE * FROM `sym_extensions`;
[0.0006] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`child_section_id` = 6 AND `s`.`id` = `sa`.`parent_section_id` ORDER BY `s`.`sortorder` ASC;
[0.0003] SELECT SQL_CACHE * FROM `sym_sections_association` AS `sa`, `sym_sections` AS `s` WHERE `sa`.`parent_section_id` = 6 AND `s`.`id` = `sa`.`child_section_id` ORDER BY `s`.`sortorder` ASC;
[0.0006] SELECT SQL_CACHE `s`.* FROM `sym_sections` AS `s` ORDER BY `s`.`sortorder` asc;
[0.0004] SELECT SQL_CACHE `s`.* FROM `sym_sections` AS `s` WHERE `s`.`id` IN (16);
[0.0004] SELECT SQL_CACHE d.pages, d.id FROM `sym_documentation` AS d ORDER BY d.pages ASC;
[0.0002] SELECT SQL_CACHE `id` FROM `sym_sections` WHERE `handle` = 'artikel' LIMIT 1;
[0.0003] UPDATE sym_sections SET `name` = 'Artikel', `handle` = 'artikel', `navigation_group` = 'Inhalte', `hidden` = 'no', `filter` = 'yes', `max_entries` = '0' WHERE `id` = 6;
[0.0004] SELECT SQL_CACHE `id` FROM `sym_fields` WHERE `parent_section` = '6' AND `id` NOT IN ('38', '39', '49', '94', '61', '46', '80', '82', '44', '45', '211', '41', '42', '50', '62', '63', '64', '48');
[0.0001] UPDATE sym_fields SET `label` = 'Deutsch', `element_name` = 'de', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'publish_tabs', `show_column` = 'no', `sortorder` = '0' WHERE `id` = 38;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 38 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_publish_tabs` WHERE `field_id` = 38 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_publish_tabs` (`field_id`) VALUES ('38');
[0.0001] UPDATE sym_fields SET `label` = 'Titel (de)', `element_name` = 'titel-de', `parent_section` = '6', `location` = 'main', `required` = 'yes', `type` = 'input', `show_column` = 'yes', `sortorder` = '1' WHERE `id` = 39;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 39 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_input` WHERE `field_id` = 39 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_input` (`validator`, `field_id`) VALUES (null, '39');
[0.0001] UPDATE sym_fields SET `label` = 'Text (de)', `element_name` = 'text-de', `parent_section` = '6', `location` = 'main', `required` = 'yes', `type` = 'textarea', `show_column` = 'no', `sortorder` = '2' WHERE `id` = 49;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 49 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_textarea` WHERE `field_id` = 49 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_textarea` (`formatter`, `size`, `field_id`) VALUES ('markdown_extra_with_smartypants', '15', '49');
[0.0001] UPDATE sym_fields SET `label` = 'Website', `element_name` = 'bereich', `parent_section` = '6', `location` = 'sidebar', `required` = 'yes', `type` = 'association', `show_column` = 'yes', `sortorder` = '3' WHERE `id` = 94;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 94 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 94 LIMIT 1;
[0.0002] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('94', '52', 'no', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 94 OR `parent_section_field_id` = 94;
[0.0003] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(52);
[0.0004] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (52);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(94);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (94);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 94;
[0.0002] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('7', '52', '6', '94', 'no', 'aui-selector', null);
[0.0002] UPDATE sym_fields SET `label` = 'Navigationspunkt', `element_name` = 'nav', `parent_section` = '6', `location` = 'sidebar', `required` = 'yes', `type` = 'association', `show_column` = 'yes', `sortorder` = '4' WHERE `id` = 61;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 61 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 61 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('61', '60', 'no', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 61 OR `parent_section_field_id` = 61;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(60);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_reflection` WHERE `field_id` IN (60);
[0.0003] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(61);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (61);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 61;
[0.0002] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('5', '60', '6', '61', 'no', 'aui-selector', 'aui-editor-new');
[0.0001] UPDATE sym_fields SET `label` = 'Veröffentlicht', `element_name` = 'veroeffentlicht', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'checkbox', `show_column` = 'yes', `sortorder` = '5' WHERE `id` = 46;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 46 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_checkbox` WHERE `field_id` = 46 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_checkbox` (`default_state`, `field_id`) VALUES ('on', '46');
[0.0001] UPDATE sym_fields SET `label` = 'Ist nur Navigationspunkt', `element_name` = 'nur-nav', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'checkbox', `show_column` = 'yes', `sortorder` = '6' WHERE `id` = 80;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 80 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_checkbox` WHERE `field_id` = 80 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_checkbox` (`default_state`, `field_id`) VALUES ('off', '80');
[0.0001] UPDATE sym_fields SET `label` = 'Großbild/er (über dem Haupttext)', `element_name` = 'grossbild', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '7' WHERE `id` = 82;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 82 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 82 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('82', '28', 'yes', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 82 OR `parent_section_field_id` = 82;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(28);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_reflection` WHERE `field_id` IN (28);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(82);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (82);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 82;
[0.0001] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('3', '28', '6', '82', 'no', 'aui-selector-sortable', 'aui-editor-new');
[0.0001] UPDATE sym_fields SET `label` = 'Bilder', `element_name` = 'bilder', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '8' WHERE `id` = 44;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 44 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 44 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('44', '28', 'yes', 'no', '20');
[0.0001] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 44 OR `parent_section_field_id` = 44;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(44);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (44);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 44;
[0.0001] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('3', '28', '6', '44', 'no', 'aui-selector-sortable', 'aui-editor-new');
[0.0002] UPDATE sym_fields SET `label` = 'Downloads', `element_name` = 'downloads', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '9' WHERE `id` = 45;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 45 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 45 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('45', '33', 'yes', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 45 OR `parent_section_field_id` = 45;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(33);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_reflection` WHERE `field_id` IN (33);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(45);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (45);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 45;
[0.0002] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('4', '33', '6', '45', 'no', 'aui-selector-sortable', 'aui-editor-new');
[0.0002] UPDATE sym_fields SET `label` = 'Karte', `element_name` = 'geo', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'association', `show_column` = 'no', `sortorder` = '10' WHERE `id` = 211;
[0.0002] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 211 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_association` WHERE `field_id` = 211 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_association` (`field_id`, `related_field_id`, `allow_multiple_selection`, `hide_when_prepopulated`, `limit`) VALUES ('211', '179', 'yes', 'no', '20');
[0.0002] DELETE FROM sym_sections_association WHERE `child_section_field_id` = 211 OR `parent_section_field_id` = 211;
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(179);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_input` WHERE `field_id` IN (179);
[0.0002] SELECT SQL_CACHE t1.* FROM sym_fields AS `t1` WHERE 1 AND t1.`id` IN(211);
[0.0002] SELECT SQL_CACHE * FROM `sym_fields_association` WHERE `field_id` IN (211);
[0.0002] SELECT SQL_CACHE CASE hide_association WHEN "no" THEN "yes" ELSE "no" END as show_association FROM `sym_sections_association` WHERE `child_section_field_id` = 211;
[0.0001] INSERT INTO `sym_sections_association` (`parent_section_id`, `parent_section_field_id`, `child_section_id`, `child_section_field_id`, `hide_association`, `interface`, `editor`) VALUES ('19', '179', '6', '211', 'no', 'aui-selector', 'aui-editor-new');
[0.0001] UPDATE sym_fields SET `label` = 'Englisch', `element_name` = 'en', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'publish_tabs', `show_column` = 'no', `sortorder` = '11' WHERE `id` = 41;
[0.0002] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 41 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_publish_tabs` WHERE `field_id` = 41 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_publish_tabs` (`field_id`) VALUES ('41');
[0.0002] UPDATE sym_fields SET `label` = 'Titel (en)', `element_name` = 'titel-en', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'input', `show_column` = 'yes', `sortorder` = '12' WHERE `id` = 42;
[0.0002] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 42 LIMIT 1;
[0.0002] DELETE FROM `sym_fields_input` WHERE `field_id` = 42 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_input` (`validator`, `field_id`) VALUES (null, '42');
[0.0002] UPDATE sym_fields SET `label` = 'Text (en)', `element_name` = 'text-en', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'textarea', `show_column` = 'no', `sortorder` = '13' WHERE `id` = 50;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 50 LIMIT 1;
[0.0002] DELETE FROM `sym_fields_textarea` WHERE `field_id` = 50 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_textarea` (`formatter`, `size`, `field_id`) VALUES ('markdown_extra_with_smartypants', '15', '50');
[0.0002] UPDATE sym_fields SET `label` = 'Leichte Sprache', `element_name` = 'ls', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'publish_tabs', `show_column` = 'no', `sortorder` = '14' WHERE `id` = 62;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 62 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_publish_tabs` WHERE `field_id` = 62 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_publish_tabs` (`field_id`) VALUES ('62');
[0.0001] UPDATE sym_fields SET `label` = 'Titel (ls)', `element_name` = 'titel-ls', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'input', `show_column` = 'yes', `sortorder` = '15' WHERE `id` = 63;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 63 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_input` WHERE `field_id` = 63 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_input` (`validator`, `field_id`) VALUES (null, '63');
[0.0001] UPDATE sym_fields SET `label` = 'Text (ls)', `element_name` = 'text-ls', `parent_section` = '6', `location` = 'main', `required` = 'no', `type` = 'textarea', `show_column` = 'no', `sortorder` = '16' WHERE `id` = 64;
[0.0001] SELECT SQL_CACHE `type` FROM `sym_fields` WHERE `id` = 64 LIMIT 1;
[0.0001] DELETE FROM `sym_fields_textarea` WHERE `field_id` = 64 LIMIT 1;
[0.0001] INSERT INTO `sym_fields_textarea` (`formatter`, `size`, `field_id`) VALUES ('markdown_extra_with_smartypants', '15', '64');
[0.0001] UPDATE sym_fields SET `label` = 'Reihenfolge', `element_name` = 'reihenfolge', `parent_section` = '6', `location` = 'sidebar', `required` = 'no', `type` = 'order_entries', `show_column` = 'no', `sortorder` = '17' WHERE `id` = 48;
[0.0246] SHOW COLUMNS FROM sym_entries_data_48 WHERE Field like 'field_%';;
[0.0802] ALTER TABLE `sym_entries_data_48` DROP COLUMN `field_94`;
[0.0873] ALTER TABLE `sym_entries_data_48` ADD COLUMN `field_`varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL;