/*1*/ ALTER TABLE `dokument`
	ADD COLUMN `rok` INT(10) NULL AFTER `dokument_id`;
/*2*/ INSERT INTO `form_element` (`id`, `form_group_id`, `form_element_type_id`, `db_table`, `db_column`, `column_title`, `position`, `direct_to_db`, `required`) VALUES ('35008', '35000', '1', 'dokument', 'rok', 'Evidenčný rok', '65', '1', '1');
/*3*/ UPDATE dokument SET rok = YEAR(datum_pridania) WHERE visibility_type = 1;