Revision 4986
Added by Aaron Marcuse-Kubitza about 12 years ago
inputs/VegBank/stemcount/test.xml.ref | ||
---|---|---|
23 | 23 |
</path> |
24 | 24 |
</_simplifyPath> |
25 | 25 |
</VegBIEN> |
26 |
Inserted 6 new rows into database |
|
26 |
Inserted 5 new rows into database |
schemas/vegbien.sql | ||
---|---|---|
4721 | 4721 |
-- Name: taxonoccurrence_unique_within_locationevent; Type: INDEX; Schema: public; Owner: -; Tablespace: |
4722 | 4722 |
-- |
4723 | 4723 |
|
4724 |
CREATE UNIQUE INDEX taxonoccurrence_unique_within_locationevent ON taxonoccurrence USING btree (locationevent_id, (COALESCE(authortaxoncode, '\\N'::text))) WHERE (sourceaccessioncode IS NULL);
|
|
4724 |
CREATE UNIQUE INDEX taxonoccurrence_unique_within_locationevent ON taxonoccurrence USING btree ((COALESCE(locationevent_id, 2147483647)), (COALESCE(authortaxoncode, '\\N'::text))) WHERE (sourceaccessioncode IS NULL);
|
|
4725 | 4725 |
|
4726 | 4726 |
|
4727 | 4727 |
-- |
Also available in: Unified diff
schemas/vegbien.sql: taxonoccurrence: taxonoccurrence_unique_within_locationevent unique index: Fixed bug where locationevent_id needed to be enclosed in COALESCE so that the unique constraint also applies to rows with NULL locationevent_ids (there is no other unique constraint handling these rows)