ALTER TABLE `obchodny_partner`
  ADD COLUMN `pocet_zamestnancov` INT NULL DEFAULT NULL AFTER `datum_prvej_spoluprace`;

INSERT INTO `form_element` (`id`, `form_group_id`, `form_element_type_id`, `db_table`, `db_column`, `db_multi_table`, `db_multivalue_table`, `column_title`, `position`, `attribute`, `width`, `height`, `help`, `example`, `direct_to_db`, `required`, `number`, `float_number`, `email`, `css_style`, `css_class`, `javascript`, `direct_multi_label`, `direct_multi_data`, `default_val`, `vdaemon`, `add_empty_option`, `html`, `lang_code`, `read_only`) VALUES (112, 26000, 1, 'obchodny_partner', 'pocet_zamestnancov', NULL, NULL, 'Počet zamestnancov', 130, NULL, NULL, NULL, NULL, NULL, 1, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);

/*1*/ UPDATE `pocet_zamestnancov` SET `nazov`='151 až 250', `od`='151', `do`='250' WHERE  `id`=6;
/*2*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('7', '251 až 350', '251', '350');
/*3*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('8', '351 až 500', '351', '500');
/*4*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('9', '501 až 750', '501', '750');
/*5*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('10', '751 až 1000', '751', '1000');
/*6*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('11', '1001 až 2000', '1001', '2000');
/*7*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('12', '2001 až 3000', '2001', '3000');
/*8*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('13', '3001 až 4000', '3001', '4000');
/*9*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('14', '4001 až 5000', '4001', '5000');
/*10*/ INSERT INTO `pocet_zamestnancov` (`id`, `nazov`, `od`, `do`) VALUES ('15', 'nad 5000', '5000', '99999');

/*1*/ INSERT INTO `form_element` (`id`, `form_group_id`, `form_element_type_id`, `db_table`, `db_column`, `column_title`, `position`, `direct_to_db`) VALUES ('109', '21', '3', 'obchodny_partner', 'korespondencna_adresa', 'Iná korešpondenčná adresa', '10', '1');
/*2*/ ALTER TABLE `obchodny_partner`
  ADD COLUMN `ina_korespondencna_adresa` TINYINT NULL DEFAULT NULL AFTER `pocet_zamestnancov`;
/*3*/ UPDATE `form_element` SET `db_column`='ina_korespondencna_adresa' WHERE  `id`=109;
/*4*/ UPDATE `form_element` SET `form_group_id`='26000' WHERE  `id`=102;
/*5*/ UPDATE `form_element` SET `position`='160' WHERE  `id`=102;
/*6*/ UPDATE `form_element` SET `position`='5' WHERE  `id`=109;

/*2*/ ALTER TABLE `zmluva`
  ADD COLUMN `datum_pripomienky` DATE NULL DEFAULT NULL AFTER `typ_zmeny_zmluvy_id`;
/*3*/ INSERT INTO `form_element` (`id`, `form_group_id`, `form_element_type_id`, `db_table`, `db_column`, `column_title`, `position`, `direct_to_db`) VALUES ('111', '11', '4', 'zmluva', 'datum_pripomienky', 'Dátum pripomienky', '110', '1');