Public feed #888023

Something

public text v1 · immutable
Raw Edit
·published 2008-02-01 20:32 UTC
rendered paste body
CREATE TABLE notes (
   gid serial PRIMARY key,
   typeid bigint,
   username character varying(32),
   title character varying(256),
   datetime time default now(),
   content text,
   comments text
);

INSERT INTO notes (typeid,title,username,content,comments)
VALUES(0,'title','username','content','comment');

SELECT AddGeometryColumn('public', 'notes', 'the_geom', 4326, 'POINT', 2);

UPDATE notes SET the_geom = GeometryFromText('POINT (0.0 0.0)',4326)
WHERE gid = 1;