Revision 12606
Added by Aaron Marcuse-Kubitza over 10 years ago
vegbien.sql | ||
---|---|---|
594 | 594 |
|
595 | 595 |
|
596 | 596 |
-- |
597 |
-- Name: keys_~type._plots_18_list_of_subplots_codes_for_each_plot_for_e; Type: TYPE; Schema: public_validations; Owner: - |
|
598 |
-- |
|
599 |
|
|
600 |
CREATE TYPE "keys_~type._plots_18_list_of_subplots_codes_for_each_plot_for_e" AS ( |
|
601 |
project_name text, |
|
602 |
plot_code text, |
|
603 |
subplot_code text |
|
604 |
); |
|
605 |
|
|
606 |
|
|
607 |
-- |
|
597 | 608 |
-- Name: keys_~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: - |
598 | 609 |
-- |
599 | 610 |
|
... | ... | |
815 | 826 |
|
816 | 827 |
|
817 | 828 |
-- |
829 |
-- Name: values__~type._plots_18_list_of_subplots_codes_for_each_plot_fo; Type: TYPE; Schema: public_validations; Owner: - |
|
830 |
-- |
|
831 |
|
|
832 |
CREATE TYPE "values__~type._plots_18_list_of_subplots_codes_for_each_plot_fo" AS ( |
|
833 |
project_name text, |
|
834 |
plot_code text, |
|
835 |
subplot_code text |
|
836 |
); |
|
837 |
|
|
838 |
|
|
839 |
-- |
|
818 | 840 |
-- Name: values__~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: - |
819 | 841 |
-- |
820 | 842 |
|
... | ... | |
2706 | 2728 |
|
2707 | 2729 |
|
2708 | 2730 |
-- |
2731 |
-- Name: ~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
|
2732 |
-- |
|
2733 |
|
|
2734 |
CREATE TABLE "~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p" ( |
|
2735 |
project_name text, |
|
2736 |
plot_code text, |
|
2737 |
subplot_code text |
|
2738 |
); |
|
2739 |
|
|
2740 |
|
|
2741 |
-- |
|
2742 |
-- Name: keys("~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p"); Type: FUNCTION; Schema: public_validations; Owner: - |
|
2743 |
-- |
|
2744 |
|
|
2745 |
CREATE FUNCTION keys(value "~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p") RETURNS "keys_~type._plots_18_list_of_subplots_codes_for_each_plot_for_e" |
|
2746 |
LANGUAGE sql IMMUTABLE |
|
2747 |
AS $_$ |
|
2748 |
SELECT ROW($1.project_name, $1.plot_code, $1.subplot_code)::public_validations."keys_~type._plots_18_list_of_subplots_codes_for_each_plot_for_e" |
|
2749 |
$_$; |
|
2750 |
|
|
2751 |
|
|
2752 |
-- |
|
2709 | 2753 |
-- Name: ~type._traits_01_count_records; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: |
2710 | 2754 |
-- |
2711 | 2755 |
|
... | ... | |
3510 | 3554 |
|
3511 | 3555 |
|
3512 | 3556 |
-- |
3557 |
-- Name: values_("~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p"); Type: FUNCTION; Schema: public_validations; Owner: - |
|
3558 |
-- |
|
3559 |
|
|
3560 |
CREATE FUNCTION values_(value "~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p") RETURNS "values__~type._plots_18_list_of_subplots_codes_for_each_plot_fo" |
|
3561 |
LANGUAGE sql IMMUTABLE |
|
3562 |
AS $_$ |
|
3563 |
SELECT ROW($1.project_name, $1.plot_code, $1.subplot_code)::public_validations."values__~type._plots_18_list_of_subplots_codes_for_each_plot_fo" |
|
3564 |
$_$; |
|
3565 |
|
|
3566 |
|
|
3567 |
-- |
|
3513 | 3568 |
-- Name: values_("~type._traits_01_count_records"); Type: FUNCTION; Schema: public_validations; Owner: - |
3514 | 3569 |
-- |
3515 | 3570 |
|
... | ... | |
10525 | 10580 |
|
10526 | 10581 |
|
10527 | 10582 |
-- |
10583 |
-- Data for Name: ~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p; Type: TABLE DATA; Schema: public_validations; Owner: - |
|
10584 |
-- |
|
10585 |
|
|
10586 |
|
|
10587 |
|
|
10588 |
-- |
|
10528 | 10589 |
-- Data for Name: ~type._traits_01_count_records; Type: TABLE DATA; Schema: public_validations; Owner: - |
10529 | 10590 |
-- |
10530 | 10591 |
|
Also available in: Unified diff
schemas/vegbien.sql: _plots_18_list_of_subplots_codes_for_each_plot_for_each_project: added ~type table