Revision 11730
Added by Aaron Marcuse-Kubitza almost 11 years ago
vegbien.sql | ||
---|---|---|
2996 | 2996 |
|
2997 | 2997 |
|
2998 | 2998 |
-- |
2999 |
-- Name: collected_date_min; Type: VIEW; Schema: public; Owner: - |
|
3000 |
-- |
|
3001 |
|
|
3002 |
CREATE VIEW collected_date_min AS |
|
3003 |
SELECT analytical_stem."dateCollected" |
|
3004 |
FROM analytical_stem |
|
3005 |
WHERE (analytical_stem."dateCollected" IS NOT NULL) |
|
3006 |
ORDER BY analytical_stem."dateCollected" |
|
3007 |
LIMIT 1; |
|
3008 |
|
|
3009 |
|
|
3010 |
-- |
|
2999 | 3011 |
-- Name: commclass; Type: TABLE; Schema: public; Owner: -; Tablespace: |
3000 | 3012 |
-- |
3001 | 3013 |
|
... | ... | |
9335 | 9347 |
|
9336 | 9348 |
|
9337 | 9349 |
-- |
9350 |
-- Name: collected_date_min; Type: ACL; Schema: public; Owner: - |
|
9351 |
-- |
|
9352 |
|
|
9353 |
REVOKE ALL ON TABLE collected_date_min FROM PUBLIC; |
|
9354 |
REVOKE ALL ON TABLE collected_date_min FROM bien; |
|
9355 |
GRANT ALL ON TABLE collected_date_min TO bien; |
|
9356 |
GRANT SELECT ON TABLE collected_date_min TO bien_read; |
|
9357 |
GRANT SELECT ON TABLE collected_date_min TO public_; |
|
9358 |
|
|
9359 |
|
|
9360 |
-- |
|
9338 | 9361 |
-- Name: commclass; Type: ACL; Schema: public; Owner: - |
9339 | 9362 |
-- |
9340 | 9363 |
|
Also available in: Unified diff
schemas/vegbien.sql: added collected_date_min view