Skip to content

Commit

Permalink
Updated production structure file.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsrohde committed Sep 5, 2014
1 parent 1a226e8 commit 3d88db6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions db/production_structure.sql
Expand Up @@ -856,7 +856,7 @@ CREATE TABLE models (
CREATE TABLE modeltypes (
id bigint NOT NULL,
name character varying(255) NOT NULL,
user_id integer,
user_id bigint,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
Expand All @@ -873,7 +873,7 @@ CREATE TABLE modeltypes_formats (
format_id bigint NOT NULL,
required boolean DEFAULT false,
input boolean DEFAULT true,
user_id integer,
user_id bigint,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
Expand Down Expand Up @@ -1782,8 +1782,8 @@ CREATE VIEW traitsview_private AS
traits.treatment_id,
sites.sitename,
sites.city,
st_y(sites.geometry) AS lat,
st_x(sites.geometry) AS lon,
st_y(st_centroid(sites.geometry)) AS lat,
st_x(st_centroid(sites.geometry)) AS lon,
species.scientificname,
species.commonname,
species.genus,
Expand Down Expand Up @@ -1967,8 +1967,8 @@ CREATE VIEW yieldsview_private AS
yields.treatment_id,
sites.sitename,
sites.city,
st_y(sites.geometry) AS lat,
st_x(sites.geometry) AS lon,
st_y(st_centroid(sites.geometry)) AS lat,
st_x(st_centroid(sites.geometry)) AS lon,
species.scientificname,
species.commonname,
species.genus,
Expand Down

0 comments on commit 3d88db6

Please sign in to comment.