/*2*/ DELETE FROM `form_element` WHERE  `id`=6004;
/*3*/ DELETE FROM `form_element` WHERE  `id`=6014;
/*4*/ DELETE FROM `form_element` WHERE  `id`=6106;
/*5*/ UPDATE `merna_jednotka` SET `nazov`='ks', `code`='ks' WHERE  `id`=1;
/*6*/ UPDATE `merna_jednotka` SET `nazov`='hod', `code`='hod' WHERE  `id`=2;
/*7*/ UPDATE `merna_jednotka` SET `nazov`='km', `code`='km' WHERE  `id`=3;
/*9*/ ALTER TABLE `faktura`
  DROP COLUMN `zmluva_id`,
  DROP FOREIGN KEY `FK_faktura_zmluva_id`;
/*10*/ CREATE TABLE `faktura_zmluva` (
                                       `faktura_id` INT(11) NOT NULL,
                                       `zmluva_id` INT(11) NOT NULL,
                                       PRIMARY KEY (`faktura_id`, `zmluva_id`)
       )
  COLLATE='utf8_general_ci'
  ENGINE=InnoDB
;
/*11*/ UPDATE `form_element` SET `form_element_type_id`='9', `direct_multi_data`='1', `add_empty_option`=NULL WHERE  `id`=6011;
/*12*/ ALTER TABLE `faktura`
  ADD COLUMN `json_data` TEXT NULL AFTER `poznamka`;