ALTER TABLE `osoba`
	ADD COLUMN `passwd_clear` VARCHAR(255) NULL DEFAULT NULL AFTER `passwd`;

/*4*/ CREATE TABLE `clanok_obchodny_partner` (
	`clanok_id` INT(11) NOT NULL,
	`obchodny_partner_id` INT(10) UNSIGNED NOT NULL,
	PRIMARY KEY (`clanok_id`, `obchodny_partner_id`),
	INDEX `fk_clanok_has_obchodny_partner_obchodny_partner1_idx` (`obchodny_partner_id`),
	INDEX `fk_clanok_has_obchodny_partner_clanok1_idx` (`clanok_id`),
	CONSTRAINT `fk_clanok_has_obchodny_partner_clanok1` FOREIGN KEY (`clanok_id`) REFERENCES `clanok` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION,
	CONSTRAINT `fk_clanok_has_obchodny_partner_obchodny_partner1` FOREIGN KEY (`obchodny_partner_id`) REFERENCES `obchodny_partner` (`id`) ON UPDATE NO ACTION ON DELETE NO ACTION
)
	COLLATE='utf8_general_ci'
	ENGINE=InnoDB
;
/*5*/ DELETE FROM `form_element` WHERE  `id`=26216;
/*6*/ DELETE FROM `form_element` WHERE  `id`=26217;
/*7*/ DELETE FROM `form_element` WHERE  `id`=26218;
/*8*/ DELETE FROM `form_element` WHERE  `id`=26222;
/*9*/ DELETE FROM `form_element` WHERE  `id`=26223;
/*10*/ DELETE FROM `form_element` WHERE  `id`=26224;
/*11*/ DELETE FROM `form_element` WHERE  `id`=26225;
/*12*/ DELETE FROM `form_group` WHERE  `id`=3002;
/*13*/ INSERT INTO `form_element` (`id`, `form_group_id`, `form_element_type_id`, `db_table`, `db_column`, `column_title`, `position`, `example`, `direct_to_db`, `css_class`, `direct_multi_label`, `direct_multi_data`) VALUES (13, 3003, 6, 'clanok', 'obchodny_partner', 'Obchodný partner', 30, 'pri nezadaní obchodného partnera sa článok zobrazí všetkým', 1, 'select2', 1, 1);
/*14*/ UPDATE `form_element` SET `db_column`='obchodny_partner_id', `db_multi_table`='obchodny_partner' WHERE  `id`=13;
/*15*/ UPDATE `form_element` SET `form_element_type_id`=9 WHERE  `id`=13;