-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,242 additions
and
330 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
modules/auto_verify/db/version_2_36_0/201910071330_new_survey_fields.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
CREATE OR REPLACE function f_add_new_survey_fields (OUT success bool) | ||
LANGUAGE plpgsql AS | ||
$func$ | ||
BEGIN | ||
|
||
success := TRUE; | ||
|
||
BEGIN | ||
ALTER TABLE surveys ADD COLUMN auto_accept_taxa_filters INT[]; | ||
|
||
EXCEPTION | ||
WHEN duplicate_column THEN | ||
RAISE NOTICE 'column exists.'; | ||
success := FALSE; | ||
END; | ||
|
||
END | ||
$func$; | ||
|
||
SELECT f_add_new_survey_fields(); | ||
|
||
DROP FUNCTION f_add_new_survey_fields(); | ||
|
||
COMMENT ON COLUMN surveys.auto_accept_taxa_filters IS 'List of taxon meaning IDs to filter records qualifying for auto-verification'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
modules/indicia_setup/db/version_2_35_0/201910021200_occ_deletions_index.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
-- Index for extracting deletions into feeds, e.g. Elasticsearch. | ||
CREATE INDEX IF NOT EXISTS ix_occurrence_updated_on_deletions ON occurrences(updated_on) WHERE deleted=true; | ||
CREATE INDEX ix_occurrence_updated_on_deletions ON occurrences(updated_on) WHERE deleted=true; |
Oops, something went wrong.