Project

General

Profile

« Previous | Next » 

Revision 12606

schemas/vegbien.sql: _plots_18_list_of_subplots_codes_for_each_plot_for_each_project: added ~type table

View differences:

trunk/schemas/vegbien.my.sql
308 308

  
309 309

  
310 310
--
311
-- Name: keys_~type._plots_18_list_of_subplots_codes_for_each_plot_for_e; Type: TYPE; Schema: public_validations; Owner: -
312
--
313

  
314

  
315

  
316

  
317
--
311 318
-- Name: keys_~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: -
312 319
--
313 320

  
......
476 483

  
477 484

  
478 485
--
486
-- Name: values__~type._plots_18_list_of_subplots_codes_for_each_plot_fo; Type: TYPE; Schema: public_validations; Owner: -
487
--
488

  
489

  
490

  
491

  
492
--
479 493
-- Name: values__~type._traits_01_count_records; Type: TYPE; Schema: public_validations; Owner: -
480 494
--
481 495

  
......
1429 1443

  
1430 1444

  
1431 1445
--
1446
-- Name: ~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
1447
--
1448

  
1449
CREATE TABLE `~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p` (
1450
    project_name varchar(255),
1451
    plot_code varchar(255),
1452
    subplot_code varchar(255)
1453
);
1454

  
1455

  
1456
--
1457
-- Name: keys(`~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p`); Type: FUNCTION; Schema: public_validations; Owner: -
1458
--
1459

  
1460

  
1461

  
1462

  
1463
--
1432 1464
-- Name: ~type._traits_01_count_records; Type: TABLE; Schema: public_validations; Owner: -; Tablespace: 
1433 1465
--
1434 1466

  
......
1842 1874

  
1843 1875

  
1844 1876
--
1877
-- Name: values_(`~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p`); Type: FUNCTION; Schema: public_validations; Owner: -
1878
--
1879

  
1880

  
1881

  
1882

  
1883
--
1845 1884
-- Name: values_(`~type._traits_01_count_records`); Type: FUNCTION; Schema: public_validations; Owner: -
1846 1885
--
1847 1886

  
......
7622 7661

  
7623 7662

  
7624 7663
--
7664
-- Data for Name: ~type._plots_18_list_of_subplots_codes_for_each_plot_for_each_p; Type: TABLE DATA; Schema: public_validations; Owner: -
7665
--
7666

  
7667

  
7668

  
7669
--
7625 7670
-- Data for Name: ~type._traits_01_count_records; Type: TABLE DATA; Schema: public_validations; Owner: -
7626 7671
--
7627 7672

  
trunk/schemas/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