alter table raktar_mozgas_fej
  drop constraint raktar_mozgas_fej_ch1; 

alter table raktar_mozgas_fej
  add constraint raktar_mozgas_fej_ch1 check (bizonylat_fajta in (1,2,3,4,5,6,7,8,9,10,11,12));

alter table mozgasnem
  drop constraint mozgasnem_ch1;

alter table mozgasnem
  add constraint mozgasnem_ch1 check (tipus in (0,1,2,3));

ALTER TABLE _setup_main ADD COLUMN profromaszamla_peldanyszam smallint;
ALTER TABLE _setup_main ALTER COLUMN profromaszamla_peldanyszam SET STORAGE PLAIN;
ALTER TABLE _setup_main ALTER COLUMN profromaszamla_peldanyszam SET DEFAULT 0;

CREATE TABLE _tetel_tipus
(
  kod serial NOT NULL,
  lang_0000040e character varying(60),
  lang_00000407 character varying(60),
  lang_00000409 character varying(60),
  CONSTRAINT _tetel_tipus_pkey PRIMARY KEY (kod)
) 
WITHOUT OIDS;

ALTER TABLE raktar_mozgas_fej ADD COLUMN rendben smallint;
ALTER TABLE raktar_mozgas_fej ALTER COLUMN rendben SET STORAGE PLAIN;
ALTER TABLE raktar_mozgas_fej ALTER COLUMN rendben SET DEFAULT 0;

ALTER TABLE raktar_mozgas_fej ADD COLUMN datum1 date;
ALTER TABLE raktar_mozgas_fej ALTER COLUMN datum1 SET STORAGE PLAIN;

ALTER TABLE raktar_mozgas_fej ADD COLUMN datum2 date;
ALTER TABLE raktar_mozgas_fej ALTER COLUMN datum2 SET STORAGE PLAIN;

ALTER TABLE _tetel_tipus ADD COLUMN ajanlatbeli_sorrend smallint;
ALTER TABLE _tetel_tipus ALTER COLUMN ajanlatbeli_sorrend SET STORAGE PLAIN;
ALTER TABLE _tetel_tipus ALTER COLUMN ajanlatbeli_sorrend SET DEFAULT 0;