create table test (myid serial, wkb_geometry geometry, mytext varchar, mynr int4, myDate date default now(), CONSTRAINT test_pkey PRIMARY KEY (myid));
insert into geometry_columns values ('','public','test','wkb_geometry',2,-1,'POLYGON');

create table test2 (myid serial, mytext varchar, mynr int4, myDate date default now(), CONSTRAINT test2_pkey PRIMARY KEY (myid));
select addgeometrycolumn('public','test2','wkb_geometry',-1,'POLYGON',2);