ALTER TABLE _setup_main ADD COLUMN kezbesitesi_rendszer smallint;
ALTER TABLE _setup_main ALTER COLUMN kezbesitesi_rendszer SET DEFAULT 0;

CREATE TABLE kezbesites_modja
(
  kod serial NOT NULL,
  lang_00000407 character varying(50) DEFAULT '',
  lang_00000409 character varying(50) DEFAULT '',
  lang_0000040e character varying(50) NOT NULL DEFAULT '',
  kezbesito_hivatal integer NOT NULL DEFAULT 0,
  m_userid character varying(20) DEFAULT '',
  m_date date DEFAULT '2005-01-01',
  m_time time without time zone DEFAULT '00:00:00',
  c_userid character varying(20) DEFAULT '',
  c_date date DEFAULT '2005-01-01',
  c_time time without time zone DEFAULT '00:00:00',
  alapertelmezett smallint DEFAULT 0,
  CONSTRAINT kezbesites_modja_pkey PRIMARY KEY (kod )
)
WITHOUT OIDS;