Revision 13100
Added by Aaron Marcuse-Kubitza almost 11 years ago
vegbien.sql | ||
---|---|---|
1491 | 1491 |
-- |
1492 | 1492 |
|
1493 | 1493 |
CREATE TYPE "values__~type._specimens_16_list_distinct_specimen_descriptions" AS ( |
1494 |
copies bigint
|
|
1494 |
"specimenDescription" text
|
|
1495 | 1495 |
); |
1496 | 1496 |
|
1497 | 1497 |
|
... | ... | |
3846 | 3846 |
-- |
3847 | 3847 |
|
3848 | 3848 |
CREATE TABLE "~type._specimens_16_list_distinct_specimen_descriptions" ( |
3849 |
"specimenDescription" text, |
|
3850 |
copies bigint NOT NULL |
|
3849 |
"specimenDescription" text |
|
3851 | 3850 |
); |
3852 | 3851 |
|
3853 | 3852 |
|
... | ... | |
4894 | 4893 |
CREATE FUNCTION values_(value "~type._specimens_16_list_distinct_specimen_descriptions") RETURNS "values__~type._specimens_16_list_distinct_specimen_descriptions" |
4895 | 4894 |
LANGUAGE sql IMMUTABLE |
4896 | 4895 |
AS $_$ |
4897 |
SELECT ROW($1.copies)::public_validations."values__~type._specimens_16_list_distinct_specimen_descriptions"
|
|
4896 |
SELECT ROW($1."specimenDescription")::public_validations."values__~type._specimens_16_list_distinct_specimen_descriptions"
|
|
4898 | 4897 |
$_$; |
4899 | 4898 |
|
4900 | 4899 |
|
Also available in: Unified diff
schemas/vegbien.sql: _specimens_16_list_distinct_specimen_descriptions: re-ran through pipeline after removing duplicated rows