UPDATE tetel_foglalas SET foglalt = 0 WHERE foglalt is null; 
ALTER TABLE tetel_foglalas ALTER COLUMN foglalt SET NOT NULL;
UPDATE tetel_rendeles SET rendelt = 0 WHERE rendelt is null;
ALTER TABLE tetel_rendeles ALTER COLUMN rendelt SET NOT NULL;
