Project

General

Profile

« Previous | Next » 

Revision 11667

schemas/*.sql: updated for PostgreSQL 9.3. this reorders some functions, adds empty comment headers for omitted SEQUENCE SET commands, and (best of all) finally splits view columns onto multiple lines, so that changes in the columns are actually legible (and produce their own svn diff!)

View differences:

schemas/py_util.sql
3 3
--
4 4

  
5 5
SET statement_timeout = 0;
6
SET lock_timeout = 0;
6 7
SET client_encoding = 'UTF8';
7 8
SET standard_conforming_strings = on;
8 9
SET check_function_bodies = false;
......
40 41
ALTER FUNCTION py_util._date(date timestamp with time zone) OWNER TO bien;
41 42

  
42 43
--
44
-- Name: _date(integer, integer, integer); Type: FUNCTION; Schema: py_util; Owner: bien
45
--
46

  
47
CREATE FUNCTION _date(year integer DEFAULT NULL::integer, month integer DEFAULT NULL::integer, day integer DEFAULT NULL::integer) RETURNS text
48
    LANGUAGE sql IMMUTABLE STRICT
49
    AS $_$
50
SELECT py_util._date($1::text, $2::text, $3::text)
51
$_$;
52

  
53

  
54
ALTER FUNCTION py_util._date(year integer, month integer, day integer) OWNER TO bien;
55

  
56
--
43 57
-- Name: _date(text, text, text); Type: FUNCTION; Schema: py_util; Owner: bien
44 58
--
45 59

  
......
84 98
ALTER FUNCTION py_util._date(year text, month text, day text) OWNER TO bien;
85 99

  
86 100
--
87
-- Name: _date(integer, integer, integer); Type: FUNCTION; Schema: py_util; Owner: bien
88
--
89

  
90
CREATE FUNCTION _date(year integer DEFAULT NULL::integer, month integer DEFAULT NULL::integer, day integer DEFAULT NULL::integer) RETURNS text
91
    LANGUAGE sql IMMUTABLE STRICT
92
    AS $_$
93
SELECT py_util._date($1::text, $2::text, $3::text)
94
$_$;
95

  
96

  
97
ALTER FUNCTION py_util._date(year integer, month integer, day integer) OWNER TO bien;
98

  
99
--
100 101
-- Name: _dateRangeEnd(text); Type: FUNCTION; Schema: py_util; Owner: bien
101 102
--
102 103

  
schemas/util.sql
3 3
--
4 4

  
5 5
SET statement_timeout = 0;
6
SET lock_timeout = 0;
6 7
SET client_encoding = 'UTF8';
7 8
SET standard_conforming_strings = on;
8 9
SET check_function_bodies = false;
......
265 266

  
266 267

  
267 268
--
269
-- Name: _map(hstore, anyelement); Type: FUNCTION; Schema: util; Owner: -
270
--
271

  
272
CREATE FUNCTION _map(map hstore, value anyelement) RETURNS anyelement
273
    LANGUAGE plpgsql IMMUTABLE STRICT
274
    AS $$
275
DECLARE
276
    result value%TYPE := util._map(map, value::text)::unknown;
277
BEGIN
278
    RETURN result;
279
END;
280
$$;
281

  
282

  
283
--
268 284
-- Name: _map(hstore, text); Type: FUNCTION; Schema: util; Owner: -
269 285
--
270 286

  
......
290 306

  
291 307

  
292 308
--
293
-- Name: _map(hstore, anyelement); Type: FUNCTION; Schema: util; Owner: -
294
--
295

  
296
CREATE FUNCTION _map(map hstore, value anyelement) RETURNS anyelement
297
    LANGUAGE plpgsql IMMUTABLE STRICT
298
    AS $$
299
DECLARE
300
    result value%TYPE := util._map(map, value::text)::unknown;
301
BEGIN
302
    RETURN result;
303
END;
304
$$;
305

  
306

  
307
--
308 309
-- Name: _max(anyelement, anyelement, anyelement, anyelement, anyelement, anyelement, anyelement, anyelement, anyelement, anyelement); Type: FUNCTION; Schema: util; Owner: -
309 310
--
310 311

  
......
438 439

  
439 440

  
440 441
--
442
-- Name: _nullIf(anyelement, text, text); Type: FUNCTION; Schema: util; Owner: -
443
--
444

  
445
CREATE FUNCTION "_nullIf"(value anyelement, "null" text, type text) RETURNS anyelement
446
    LANGUAGE sql IMMUTABLE
447
    AS $_$
448
SELECT util."_nullIf"($1, $2, $3::util.datatype)
449
$_$;
450

  
451

  
452
--
441 453
-- Name: _nullIf(anyelement, text, datatype); Type: FUNCTION; Schema: util; Owner: -
442 454
--
443 455

  
......
464 476

  
465 477

  
466 478
--
467
-- Name: _nullIf(anyelement, text, text); Type: FUNCTION; Schema: util; Owner: -
468
--
469

  
470
CREATE FUNCTION "_nullIf"(value anyelement, "null" text, type text) RETURNS anyelement
471
    LANGUAGE sql IMMUTABLE
472
    AS $_$
473
SELECT util."_nullIf"($1, $2, $3::util.datatype)
474
$_$;
475

  
476

  
477
--
478 479
-- Name: _or(boolean, boolean, boolean, boolean, boolean); Type: FUNCTION; Schema: util; Owner: -
479 480
--
480 481

  
......
765 766

  
766 767

  
767 768
--
768
-- Name: col_names(regtype); Type: FUNCTION; Schema: util; Owner: -
769
--
770

  
771
CREATE FUNCTION col_names(type regtype) RETURNS SETOF text
772
    LANGUAGE plpgsql STABLE STRICT
773
    AS $_$
774
BEGIN
775
    RETURN QUERY EXECUTE $$SELECT skeys(hstore(NULL::$$||type||$$))$$;
776
END;
777
$_$;
778

  
779

  
780
--
781 769
-- Name: col_names(regclass); Type: FUNCTION; Schema: util; Owner: -
782 770
--
783 771

  
......
792 780

  
793 781

  
794 782
--
783
-- Name: col_names(regtype); Type: FUNCTION; Schema: util; Owner: -
784
--
785

  
786
CREATE FUNCTION col_names(type regtype) RETURNS SETOF text
787
    LANGUAGE plpgsql STABLE STRICT
788
    AS $_$
789
BEGIN
790
    RETURN QUERY EXECUTE $$SELECT skeys(hstore(NULL::$$||type||$$))$$;
791
END;
792
$_$;
793

  
794

  
795
--
795 796
-- Name: col_type(col_ref); Type: FUNCTION; Schema: util; Owner: -
796 797
--
797 798

  
schemas/vegbien.my.sql
10 10

  
11 11

  
12 12

  
13

  
13 14
--
14 15
-- Name: accesslevel; Type: TYPE; Schema: public; Owner: -
15 16
--
......
891 892

  
892 893

  
893 894
--
894
-- Name: address_address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
895
--
896

  
897

  
898

  
899
--
900 895
-- Name: aggregateoccurrence; Type: TABLE; Schema: public; Owner: -; Tablespace: 
901 896
--
902 897

  
......
956 951

  
957 952

  
958 953
--
959
-- Name: aggregateoccurrence_aggregateoccurrence_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
960
--
961

  
962

  
963

  
964
--
965 954
-- Name: analytical_plot; Type: VIEW; Schema: public; Owner: -
966 955
--
967 956

  
......
990 979

  
991 980

  
992 981
--
993
-- Name: analytical_stem_taxon_occurrence__pkey_seq; Type: SEQUENCE SET; Schema: public; Owner: -
994
--
995

  
996

  
997

  
998
--
999 982
-- Name: coordinates; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1000 983
--
1001 984

  
......
1783 1766

  
1784 1767

  
1785 1768
--
1786
-- Name: classcontributor_classcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1787
--
1788

  
1789

  
1790

  
1791
--
1792 1769
-- Name: commclass; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1793 1770
--
1794 1771

  
......
1825 1802

  
1826 1803

  
1827 1804
--
1828
-- Name: commclass_commclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1829
--
1830

  
1831

  
1832

  
1833
--
1834 1805
-- Name: commconcept; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1835 1806
--
1836 1807

  
......
1858 1829

  
1859 1830

  
1860 1831
--
1861
-- Name: commconcept_commconcept_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1862
--
1863

  
1864

  
1865

  
1866
--
1867 1832
-- Name: commcorrelation; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1868 1833
--
1869 1834

  
......
1892 1857

  
1893 1858

  
1894 1859
--
1895
-- Name: commcorrelation_commcorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1896
--
1897

  
1898

  
1899

  
1900
--
1901 1860
-- Name: commdetermination; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1902 1861
--
1903 1862

  
......
1931 1890

  
1932 1891

  
1933 1892
--
1934
-- Name: commdetermination_commdetermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1935
--
1936

  
1937

  
1938

  
1939
--
1940 1893
-- Name: commlineage; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1941 1894
--
1942 1895

  
......
1962 1915

  
1963 1916

  
1964 1917
--
1965
-- Name: commlineage_commlineage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1966
--
1967

  
1968

  
1969

  
1970
--
1971 1918
-- Name: commname; Type: TABLE; Schema: public; Owner: -; Tablespace: 
1972 1919
--
1973 1920

  
......
1994 1941

  
1995 1942

  
1996 1943
--
1997
-- Name: commname_commname_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
1998
--
1999

  
2000

  
2001

  
2002
--
2003 1944
-- Name: commstatus; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2004 1945
--
2005 1946

  
......
2032 1973

  
2033 1974

  
2034 1975
--
2035
-- Name: commstatus_commstatus_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2036
--
2037

  
2038

  
2039

  
2040
--
2041 1976
-- Name: commusage; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2042 1977
--
2043 1978

  
......
2070 2005

  
2071 2006

  
2072 2007
--
2073
-- Name: commusage_commusage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2074
--
2075

  
2076

  
2077

  
2078
--
2079 2008
-- Name: coordinates_coordinates_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2080 2009
--
2081 2010

  
......
2090 2019

  
2091 2020

  
2092 2021
--
2093
-- Name: coordinates_coordinates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2094
--
2095

  
2096

  
2097

  
2098
--
2099 2022
-- Name: coverindex; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2100 2023
--
2101 2024

  
......
2125 2048

  
2126 2049

  
2127 2050
--
2128
-- Name: coverindex_coverindex_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2129
--
2130

  
2131

  
2132

  
2133
--
2134 2051
-- Name: covermethod; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2135 2052
--
2136 2053

  
......
2157 2074

  
2158 2075

  
2159 2076
--
2160
-- Name: covermethod_covermethod_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2161
--
2162

  
2163

  
2164

  
2165
--
2166 2077
-- Name: dba_preassignacccode_dba_requestnumber_seq; Type: SEQUENCE; Schema: public; Owner: -
2167 2078
--
2168 2079

  
......
2170 2081

  
2171 2082

  
2172 2083
--
2173
-- Name: dba_preassignacccode_dba_requestnumber_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2174
--
2175

  
2176

  
2177

  
2178
--
2179 2084
-- Name: definedvalue; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2180 2085
--
2181 2086

  
......
2202 2107

  
2203 2108

  
2204 2109
--
2205
-- Name: definedvalue_definedvalue_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2206
--
2207

  
2208

  
2209

  
2210
--
2211 2110
-- Name: disturbanceobs; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2212 2111
--
2213 2112

  
......
2237 2136

  
2238 2137

  
2239 2138
--
2240
-- Name: disturbanceobs_disturbanceobs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2241
--
2242

  
2243

  
2244

  
2245
--
2246 2139
-- Name: geoscrub_input; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2247 2140
--
2248 2141

  
......
2300 2193

  
2301 2194

  
2302 2195
--
2303
-- Name: graphic_graphic_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2304
--
2305

  
2306

  
2307

  
2308
--
2309 2196
-- Name: higher_plant_group_nodes; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2310 2197
--
2311 2198

  
......
2330 2217

  
2331 2218

  
2332 2219
--
2333
-- Name: location_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2334
--
2335

  
2336

  
2337

  
2338
--
2339 2220
-- Name: locationevent_locationevent_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2340 2221
--
2341 2222

  
......
2350 2231

  
2351 2232

  
2352 2233
--
2353
-- Name: locationevent_locationevent_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2354
--
2355

  
2356

  
2357

  
2358
--
2359 2234
-- Name: locationeventcontributor; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2360 2235
--
2361 2236

  
......
2383 2258

  
2384 2259

  
2385 2260
--
2386
-- Name: locationeventcontributor_locationeventcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2387
--
2388

  
2389

  
2390

  
2391
--
2392 2261
-- Name: locationeventsynonym; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2393 2262
--
2394 2263

  
......
2419 2288

  
2420 2289

  
2421 2290
--
2422
-- Name: locationeventsynonym_locationeventsynonym_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2423
--
2424

  
2425

  
2426

  
2427
--
2428 2291
-- Name: locationplace_locationplace_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2429 2292
--
2430 2293

  
......
2439 2302

  
2440 2303

  
2441 2304
--
2442
-- Name: locationplace_locationplace_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2443
--
2444

  
2445

  
2446

  
2447
--
2448 2305
-- Name: method_method_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2449 2306
--
2450 2307

  
......
2459 2316

  
2460 2317

  
2461 2318
--
2462
-- Name: method_method_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2463
--
2464

  
2465

  
2466

  
2467
--
2468 2319
-- Name: methodtaxonclass; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2469 2320
--
2470 2321

  
......
2507 2358

  
2508 2359

  
2509 2360
--
2510
-- Name: methodtaxonclass_methodtaxonclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2511
--
2512

  
2513

  
2514

  
2515
--
2516 2361
-- Name: note; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2517 2362
--
2518 2363

  
......
2542 2387

  
2543 2388

  
2544 2389
--
2545
-- Name: note_note_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2546
--
2547

  
2548

  
2549

  
2550
--
2551 2390
-- Name: notelink; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2552 2391
--
2553 2392

  
......
2574 2413

  
2575 2414

  
2576 2415
--
2577
-- Name: notelink_notelink_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2578
--
2579

  
2580

  
2581

  
2582
--
2583 2416
-- Name: party_party_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2584 2417
--
2585 2418

  
......
2594 2427

  
2595 2428

  
2596 2429
--
2597
-- Name: party_party_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2598
--
2599

  
2600

  
2601

  
2602
--
2603 2430
-- Name: partymember; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2604 2431
--
2605 2432

  
......
2628 2455

  
2629 2456

  
2630 2457
--
2631
-- Name: partymember_partymember_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2632
--
2633

  
2634

  
2635

  
2636
--
2637 2458
-- Name: place_place_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2638 2459
--
2639 2460

  
......
2648 2469

  
2649 2470

  
2650 2471
--
2651
-- Name: place_place_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2652
--
2653

  
2654

  
2655

  
2656
--
2657 2472
-- Name: placecorrelation; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2658 2473
--
2659 2474

  
......
2680 2495

  
2681 2496

  
2682 2497
--
2683
-- Name: placecorrelation_placecorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2684
--
2685

  
2686

  
2687

  
2688
--
2689 2498
-- Name: placename; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2690 2499
--
2691 2500

  
......
2736 2545

  
2737 2546

  
2738 2547
--
2739
-- Name: placename_placename_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2740
--
2741

  
2742

  
2743

  
2744
--
2745 2548
-- Name: plant; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2746 2549
--
2747 2550

  
......
2772 2575

  
2773 2576

  
2774 2577
--
2775
-- Name: plant_plant_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2776
--
2777

  
2778

  
2779

  
2780
--
2781 2578
-- Name: plantobservation_plantobservation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2782 2579
--
2783 2580

  
......
2792 2589

  
2793 2590

  
2794 2591
--
2795
-- Name: plantobservation_plantobservation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2796
--
2797

  
2798

  
2799

  
2800
--
2801 2592
-- Name: project_project_id_seq; Type: SEQUENCE; Schema: public; Owner: -
2802 2593
--
2803 2594

  
......
2812 2603

  
2813 2604

  
2814 2605
--
2815
-- Name: project_project_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2816
--
2817

  
2818

  
2819

  
2820
--
2821 2606
-- Name: projectcontributor; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2822 2607
--
2823 2608

  
......
2844 2629

  
2845 2630

  
2846 2631
--
2847
-- Name: projectcontributor_projectcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2848
--
2849

  
2850

  
2851

  
2852
--
2853 2632
-- Name: provider_count; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2854 2633
--
2855 2634

  
......
2918 2697

  
2919 2698

  
2920 2699
--
2921
-- Name: revision_revision_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2922
--
2923

  
2924

  
2925

  
2926
--
2927 2700
-- Name: soilsample; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2928 2701
--
2929 2702

  
......
2971 2744

  
2972 2745

  
2973 2746
--
2974
-- Name: soilsample_soilsample_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
2975
--
2976

  
2977

  
2978

  
2979
--
2980 2747
-- Name: soiltaxon; Type: TABLE; Schema: public; Owner: -; Tablespace: 
2981 2748
--
2982 2749

  
......
3005 2772

  
3006 2773

  
3007 2774
--
3008
-- Name: soiltaxon_soiltaxon_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3009
--
3010

  
3011

  
3012

  
3013
--
3014 2775
-- Name: source_source_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3015 2776
--
3016 2777

  
......
3025 2786

  
3026 2787

  
3027 2788
--
3028
-- Name: source_source_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3029
--
3030

  
3031

  
3032

  
3033
--
3034 2789
-- Name: sourcecontributor; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3035 2790
--
3036 2791

  
......
3058 2813

  
3059 2814

  
3060 2815
--
3061
-- Name: sourcecontributor_sourcecontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3062
--
3063

  
3064

  
3065

  
3066
--
3067 2816
-- Name: sourcelist_sourcelist_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3068 2817
--
3069 2818

  
......
3078 2827

  
3079 2828

  
3080 2829
--
3081
-- Name: sourcelist_sourcelist_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3082
--
3083

  
3084

  
3085

  
3086
--
3087 2830
-- Name: specimen; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3088 2831
--
3089 2832

  
......
3114 2857

  
3115 2858

  
3116 2859
--
3117
-- Name: specimen_specimen_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3118
--
3119

  
3120

  
3121

  
3122
--
3123 2860
-- Name: specimenreplicate_specimenreplicate_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3124 2861
--
3125 2862

  
......
3134 2871

  
3135 2872

  
3136 2873
--
3137
-- Name: specimenreplicate_specimenreplicate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3138
--
3139

  
3140

  
3141

  
3142
--
3143 2874
-- Name: stemobservation_stemobservation_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3144 2875
--
3145 2876

  
......
3154 2885

  
3155 2886

  
3156 2887
--
3157
-- Name: stemobservation_stemobservation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3158
--
3159

  
3160

  
3161

  
3162
--
3163 2888
-- Name: stratum_stratum_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3164 2889
--
3165 2890

  
......
3174 2899

  
3175 2900

  
3176 2901
--
3177
-- Name: stratum_stratum_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3178
--
3179

  
3180

  
3181

  
3182
--
3183 2902
-- Name: taxon_trait; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3184 2903
--
3185 2904

  
......
3247 2966

  
3248 2967

  
3249 2968
--
3250
-- Name: taxonalt_taxonalt_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3251
--
3252

  
3253

  
3254

  
3255
--
3256 2969
-- Name: taxonconcept; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3257 2970
--
3258 2971

  
......
3291 3004

  
3292 3005

  
3293 3006
--
3294
-- Name: taxonconcept_taxonlabel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3295
--
3296

  
3297

  
3298

  
3299
--
3300 3007
-- Name: taxoncorrelation; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3301 3008
--
3302 3009

  
......
3325 3032

  
3326 3033

  
3327 3034
--
3328
-- Name: taxoncorrelation_taxoncorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3329
--
3330

  
3331

  
3332

  
3333
--
3334 3035
-- Name: taxondetermination_taxondetermination_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3335 3036
--
3336 3037

  
......
3345 3046

  
3346 3047

  
3347 3048
--
3348
-- Name: taxondetermination_taxondetermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3349
--
3350

  
3351

  
3352

  
3353
--
3354 3049
-- Name: taxonlabel_relationship; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3355 3050
--
3356 3051

  
......
3390 3085

  
3391 3086

  
3392 3087
--
3393
-- Name: taxonlabel_taxonlabel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3394
--
3395

  
3396

  
3397

  
3398
--
3399 3088
-- Name: taxonlineage; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3400 3089
--
3401 3090

  
......
3421 3110

  
3422 3111

  
3423 3112
--
3424
-- Name: taxonlineage_taxonlineage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3425
--
3426

  
3427

  
3428

  
3429
--
3430 3113
-- Name: taxonoccurrence_taxonoccurrence_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3431 3114
--
3432 3115

  
......
3441 3124

  
3442 3125

  
3443 3126
--
3444
-- Name: taxonoccurrence_taxonoccurrence_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3445
--
3446

  
3447

  
3448

  
3449
--
3450 3127
-- Name: taxonstatus; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3451 3128
--
3452 3129

  
......
3477 3154

  
3478 3155

  
3479 3156
--
3480
-- Name: taxonstatus_taxonstatus_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3481
--
3482

  
3483

  
3484

  
3485
--
3486 3157
-- Name: taxonverbatim_taxonverbatim_id_seq; Type: SEQUENCE; Schema: public; Owner: -
3487 3158
--
3488 3159

  
......
3497 3168

  
3498 3169

  
3499 3170
--
3500
-- Name: taxonverbatim_taxonverbatim_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3501
--
3502

  
3503

  
3504

  
3505
--
3506 3171
-- Name: telephone; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3507 3172
--
3508 3173

  
......
3529 3194

  
3530 3195

  
3531 3196
--
3532
-- Name: telephone_telephone_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3533
--
3534

  
3535

  
3536

  
3537
--
3538 3197
-- Name: threatened_taxonlabel_view; Type: VIEW; Schema: public; Owner: -
3539 3198
--
3540 3199

  
......
3563 3222

  
3564 3223

  
3565 3224
--
3566
-- Name: trait_trait_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3567
--
3568

  
3569

  
3570

  
3571
--
3572 3225
-- Name: userdefined; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3573 3226
--
3574 3227

  
......
3597 3250

  
3598 3251

  
3599 3252
--
3600
-- Name: userdefined_userdefined_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3601
--
3602

  
3603

  
3604

  
3605
--
3606 3253
-- Name: voucher; Type: TABLE; Schema: public; Owner: -; Tablespace: 
3607 3254
--
3608 3255

  
......
3628 3275

  
3629 3276

  
3630 3277
--
3631
-- Name: voucher_voucher_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3632
--
3633

  
3634

  
3635

  
3636
--
3637 3278
-- Name: address_id; Type: DEFAULT; Schema: public; Owner: -
3638 3279
--
3639 3280

  
......
4046 3687

  
4047 3688

  
4048 3689
--
3690
-- Name: address_address_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3691
--
3692

  
3693

  
3694

  
3695
--
4049 3696
-- Data for Name: aggregateoccurrence; Type: TABLE DATA; Schema: public; Owner: -
4050 3697
--
4051 3698

  
4052 3699

  
4053 3700

  
4054 3701
--
3702
-- Name: aggregateoccurrence_aggregateoccurrence_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3703
--
3704

  
3705

  
3706

  
3707
--
4055 3708
-- Data for Name: analytical_stem; Type: TABLE DATA; Schema: public; Owner: -
4056 3709
--
4057 3710

  
4058 3711

  
4059 3712

  
4060 3713
--
3714
-- Name: analytical_stem_taxon_occurrence__pkey_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3715
--
3716

  
3717

  
3718

  
3719
--
4061 3720
-- Data for Name: classcontributor; Type: TABLE DATA; Schema: public; Owner: -
4062 3721
--
4063 3722

  
4064 3723

  
4065 3724

  
4066 3725
--
3726
-- Name: classcontributor_classcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3727
--
3728

  
3729

  
3730

  
3731
--
4067 3732
-- Data for Name: commclass; Type: TABLE DATA; Schema: public; Owner: -
4068 3733
--
4069 3734

  
4070 3735

  
4071 3736

  
4072 3737
--
3738
-- Name: commclass_commclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3739
--
3740

  
3741

  
3742

  
3743
--
4073 3744
-- Data for Name: commconcept; Type: TABLE DATA; Schema: public; Owner: -
4074 3745
--
4075 3746

  
4076 3747

  
4077 3748

  
4078 3749
--
3750
-- Name: commconcept_commconcept_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3751
--
3752

  
3753

  
3754

  
3755
--
4079 3756
-- Data for Name: commcorrelation; Type: TABLE DATA; Schema: public; Owner: -
4080 3757
--
4081 3758

  
4082 3759

  
4083 3760

  
4084 3761
--
3762
-- Name: commcorrelation_commcorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3763
--
3764

  
3765

  
3766

  
3767
--
4085 3768
-- Data for Name: commdetermination; Type: TABLE DATA; Schema: public; Owner: -
4086 3769
--
4087 3770

  
4088 3771

  
4089 3772

  
4090 3773
--
3774
-- Name: commdetermination_commdetermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3775
--
3776

  
3777

  
3778

  
3779
--
4091 3780
-- Data for Name: commlineage; Type: TABLE DATA; Schema: public; Owner: -
4092 3781
--
4093 3782

  
4094 3783

  
4095 3784

  
4096 3785
--
3786
-- Name: commlineage_commlineage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3787
--
3788

  
3789

  
3790

  
3791
--
4097 3792
-- Data for Name: commname; Type: TABLE DATA; Schema: public; Owner: -
4098 3793
--
4099 3794

  
4100 3795

  
4101 3796

  
4102 3797
--
3798
-- Name: commname_commname_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3799
--
3800

  
3801

  
3802

  
3803
--
4103 3804
-- Data for Name: commstatus; Type: TABLE DATA; Schema: public; Owner: -
4104 3805
--
4105 3806

  
4106 3807

  
4107 3808

  
4108 3809
--
3810
-- Name: commstatus_commstatus_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3811
--
3812

  
3813

  
3814

  
3815
--
4109 3816
-- Data for Name: commusage; Type: TABLE DATA; Schema: public; Owner: -
4110 3817
--
4111 3818

  
4112 3819

  
4113 3820

  
4114 3821
--
3822
-- Name: commusage_commusage_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3823
--
3824

  
3825

  
3826

  
3827
--
4115 3828
-- Data for Name: coordinates; Type: TABLE DATA; Schema: public; Owner: -
4116 3829
--
4117 3830

  
4118 3831

  
4119 3832

  
4120 3833
--
3834
-- Name: coordinates_coordinates_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3835
--
3836

  
3837

  
3838

  
3839
--
4121 3840
-- Data for Name: coverindex; Type: TABLE DATA; Schema: public; Owner: -
4122 3841
--
4123 3842

  
4124 3843

  
4125 3844

  
4126 3845
--
3846
-- Name: coverindex_coverindex_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3847
--
3848

  
3849

  
3850

  
3851
--
4127 3852
-- Data for Name: covermethod; Type: TABLE DATA; Schema: public; Owner: -
4128 3853
--
4129 3854

  
4130 3855

  
4131 3856

  
4132 3857
--
3858
-- Name: covermethod_covermethod_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3859
--
3860

  
3861

  
3862

  
3863
--
4133 3864
-- Data for Name: cultivated_family_locations; Type: TABLE DATA; Schema: public; Owner: -
4134 3865
--
4135 3866

  
......
4196 3927

  
4197 3928

  
4198 3929
--
3930
-- Name: dba_preassignacccode_dba_requestnumber_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3931
--
3932

  
3933

  
3934

  
3935
--
4199 3936
-- Data for Name: definedvalue; Type: TABLE DATA; Schema: public; Owner: -
4200 3937
--
4201 3938

  
4202 3939

  
4203 3940

  
4204 3941
--
3942
-- Name: definedvalue_definedvalue_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3943
--
3944

  
3945

  
3946

  
3947
--
4205 3948
-- Data for Name: disturbanceobs; Type: TABLE DATA; Schema: public; Owner: -
4206 3949
--
4207 3950

  
4208 3951

  
4209 3952

  
4210 3953
--
3954
-- Name: disturbanceobs_disturbanceobs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3955
--
3956

  
3957

  
3958

  
3959
--
4211 3960
-- Data for Name: family_higher_plant_group; Type: TABLE DATA; Schema: public; Owner: -
4212 3961
--
4213 3962

  
......
4226 3975

  
4227 3976

  
4228 3977
--
3978
-- Name: graphic_graphic_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
3979
--
3980

  
3981

  
3982

  
3983
--
4229 3984
-- Data for Name: higher_plant_group_nodes; Type: TABLE DATA; Schema: public; Owner: -
4230 3985
--
4231 3986

  
......
4249 4004

  
4250 4005

  
4251 4006
--
4007
-- Name: location_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4008
--
4009

  
4010

  
4011

  
4012
--
4252 4013
-- Data for Name: locationevent; Type: TABLE DATA; Schema: public; Owner: -
4253 4014
--
4254 4015

  
4255 4016

  
4256 4017

  
4257 4018
--
4019
-- Name: locationevent_locationevent_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4020
--
4021

  
4022

  
4023

  
4024
--
4258 4025
-- Data for Name: locationeventcontributor; Type: TABLE DATA; Schema: public; Owner: -
4259 4026
--
4260 4027

  
4261 4028

  
4262 4029

  
4263 4030
--
4031
-- Name: locationeventcontributor_locationeventcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4032
--
4033

  
4034

  
4035

  
4036
--
4264 4037
-- Data for Name: locationeventsynonym; Type: TABLE DATA; Schema: public; Owner: -
4265 4038
--
4266 4039

  
4267 4040

  
4268 4041

  
4269 4042
--
4043
-- Name: locationeventsynonym_locationeventsynonym_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4044
--
4045

  
4046

  
4047

  
4048
--
4270 4049
-- Data for Name: locationplace; Type: TABLE DATA; Schema: public; Owner: -
4271 4050
--
4272 4051

  
4273 4052

  
4274 4053

  
4275 4054
--
4055
-- Name: locationplace_locationplace_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4056
--
4057

  
4058

  
4059

  
4060
--
4276 4061
-- Data for Name: method; Type: TABLE DATA; Schema: public; Owner: -
4277 4062
--
4278 4063

  
4279 4064

  
4280 4065

  
4281 4066
--
4067
-- Name: method_method_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4068
--
4069

  
4070

  
4071

  
4072
--
4282 4073
-- Data for Name: methodtaxonclass; Type: TABLE DATA; Schema: public; Owner: -
4283 4074
--
4284 4075

  
4285 4076

  
4286 4077

  
4287 4078
--
4079
-- Name: methodtaxonclass_methodtaxonclass_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4080
--
4081

  
4082

  
4083

  
4084
--
4288 4085
-- Data for Name: note; Type: TABLE DATA; Schema: public; Owner: -
4289 4086
--
4290 4087

  
4291 4088

  
4292 4089

  
4293 4090
--
4091
-- Name: note_note_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4092
--
4093

  
4094

  
4095

  
4096
--
4294 4097
-- Data for Name: notelink; Type: TABLE DATA; Schema: public; Owner: -
4295 4098
--
4296 4099

  
4297 4100

  
4298 4101

  
4299 4102
--
4103
-- Name: notelink_notelink_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4104
--
4105

  
4106

  
4107

  
4108
--
4300 4109
-- Data for Name: party; Type: TABLE DATA; Schema: public; Owner: -
4301 4110
--
4302 4111

  
4303 4112

  
4304 4113

  
4305 4114
--
4115
-- Name: party_party_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4116
--
4117

  
4118

  
4119

  
4120
--
4306 4121
-- Data for Name: partymember; Type: TABLE DATA; Schema: public; Owner: -
4307 4122
--
4308 4123

  
4309 4124

  
4310 4125

  
4311 4126
--
4127
-- Name: partymember_partymember_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4128
--
4129

  
4130

  
4131

  
4132
--
4312 4133
-- Data for Name: place; Type: TABLE DATA; Schema: public; Owner: -
4313 4134
--
4314 4135

  
4315 4136

  
4316 4137

  
4317 4138
--
4139
-- Name: place_place_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4140
--
4141

  
4142

  
4143

  
4144
--
4318 4145
-- Data for Name: placecorrelation; Type: TABLE DATA; Schema: public; Owner: -
4319 4146
--
4320 4147

  
4321 4148

  
4322 4149

  
4323 4150
--
4151
-- Name: placecorrelation_placecorrelation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4152
--
4153

  
4154

  
4155

  
4156
--
4324 4157
-- Data for Name: placename; Type: TABLE DATA; Schema: public; Owner: -
4325 4158
--
4326 4159

  
......
4333 4166

  
4334 4167

  
4335 4168
--
4169
-- Name: placename_placename_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4170
--
4171

  
4172

  
4173

  
4174
--
4336 4175
-- Data for Name: plant; Type: TABLE DATA; Schema: public; Owner: -
4337 4176
--
4338 4177

  
4339 4178

  
4340 4179

  
4341 4180
--
4181
-- Name: plant_plant_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4182
--
4183

  
4184

  
4185

  
4186
--
4342 4187
-- Data for Name: plantobservation; Type: TABLE DATA; Schema: public; Owner: -
4343 4188
--
4344 4189

  
4345 4190

  
4346 4191

  
4347 4192
--
4193
-- Name: plantobservation_plantobservation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4194
--
4195

  
4196

  
4197

  
4198
--
4348 4199
-- Data for Name: project; Type: TABLE DATA; Schema: public; Owner: -
4349 4200
--
4350 4201

  
4351 4202

  
4352 4203

  
4353 4204
--
4205
-- Name: project_project_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4206
--
4207

  
4208

  
4209

  
4210
--
4354 4211
-- Data for Name: projectcontributor; Type: TABLE DATA; Schema: public; Owner: -
4355 4212
--
4356 4213

  
4357 4214

  
4358 4215

  
4359 4216
--
4217
-- Name: projectcontributor_projectcontributor_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4218
--
4219

  
4220

  
4221

  
4222
--
4360 4223
-- Data for Name: provider_count; Type: TABLE DATA; Schema: public; Owner: -
4361 4224
--
4362 4225

  
......
4369 4232

  
4370 4233

  
4371 4234
--
4235
-- Name: revision_revision_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4236
--
4237

  
4238

  
4239

  
4240
--
4372 4241
-- Data for Name: soilsample; Type: TABLE DATA; Schema: public; Owner: -
4373 4242
--
4374 4243

  
4375 4244

  
4376 4245

  
4377 4246
--
4247
-- Name: soilsample_soilsample_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4248
--
4249

  
4250

  
4251

  
4252
--
4378 4253
-- Data for Name: soiltaxon; Type: TABLE DATA; Schema: public; Owner: -
4379 4254
--
4380 4255

  
4381 4256

  
4382 4257

  
4383 4258
--
4259
-- Name: soiltaxon_soiltaxon_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
4260
--
4261

  
4262

  
4263

  
4264
--
4384 4265
-- Data for Name: source; Type: TABLE DATA; Schema: public; Owner: -
4385 4266
--
4386 4267

  
4387 4268

  
4388 4269

  
4389 4270
--
4271
-- Name: source_source_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff