X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetlab4.sql;h=54afd4318a3a893205883b268d1fd3ddf6a47b01;hb=79b4fa2971f7f6fca8dba0d0875a94556b26764f;hp=82636c236b0eaba0d350ef9fe3d33cd49af0213c;hpb=0bf6d6e32ad4a0ab30120cd343470822c2203c13;p=plcapi.git diff --git a/planetlab4.sql b/planetlab4.sql index 82636c2..54afd43 100644 --- a/planetlab4.sql +++ b/planetlab4.sql @@ -9,7 +9,7 @@ -- -- Copyright (C) 2006 The Trustees of Princeton University -- --- $Id: planetlab4.sql,v 1.42 2006/11/21 10:57:00 thierry Exp $ +-- $Id: planetlab4.sql,v 1.43 2006/11/23 19:35:38 thierry Exp $ -- -------------------------------------------------------------------------------- @@ -79,7 +79,9 @@ CREATE TABLE persons ( -- Timestamps date_created timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, - last_updated timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP + last_updated timestamp without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, + + peer_id integer REFERENCES peers -- From which peer ) WITH OIDS; CREATE INDEX persons_email_idx ON persons (email) WHERE deleted IS false; @@ -798,6 +800,7 @@ persons.title, persons.phone, persons.url, persons.bio, +persons.peer_id, CAST(date_part('epoch', persons.date_created) AS bigint) AS date_created, CAST(date_part('epoch', persons.last_updated) AS bigint) AS last_updated, COALESCE(person_roles.role_ids, '{}') AS role_ids,