Comments (4)
This script, added as 20191212_DML_UPDATE_SAMPLE_ALT_REFS
must be included as a post-action in the Bugs Import Checklist.
begin;
do $$
begin
begin
insert into tbl_alt_ref_types (alt_ref_type_id, alt_ref_type, description)
values (9, 'Bugs sample code', 'Unique identifier for (physical) samples in the BugsCEP database')
on conflict do nothing;
insert into tbl_sample_alt_refs (alt_ref, physical_sample_id, alt_ref_type_id)
select bugs_identifier, sead_reference_id, 9
from bugs_import.bugs_trace b
where bugs_table = 'TSample'
on conflict (sample_alt_ref_id) do update
set alt_ref = excluded.alt_ref,
physical_sample_id = excluded.physical_sample_id;
exception when sqlstate 'GUARD' then
raise notice 'ALREADY EXECUTED';
end;
end $$;
commit;
from sead_change_control.
Solved by 47be102.
Note that this fix (for the time being) must be executed after each Bugs import.
from sead_change_control.
Fixed added to 20191213_BUGS_IMPORT_POST_APPLY
from sead_change_control.
This CR has been archived.
Deprecates CR to enable a clean import in 202312 release.
from sead_change_control.
Related Issues (20)
- DENDRO_BUILDING_DATA_IMPORT_2023-12 HOT 6
- tbl_dataset_submissions field constraint update HOT 1
- SEAD_DATABASE_LOOKUPS HOT 2
- 20100101_DML_SUBMISSION_MAL_000_COMMIT HOT 1
- 20100101_DML_SUBMISSION_MAL_000_LOOKUPS HOT 1
- 20100101_DML_SUBMISSION_MAL_000_TAXA
- SEAD_DATABASE_MODEL: Many foreign key columns in SEAD lack index. This must be fixed. HOT 1
- 20190503_DML_METHOD_ADD_BUGS_METHODS
- 20190503_DML_TAXA_ADD_SPECIES_ASSOC_TYPES
- MS and 550 prep-method seems to have a reversed link HOT 11
- 20240104_DDL_DATE_SUBMITTED_TYPE HOT 1
- 20240112_DDL_CLEARINGHOUSE_UPLOAD_CSV HOT 2
- 20240119_DML_SUBMISSION_DENDROCHRONOLOGY_005_COMMIT
- BugsCEP import - Create CR script after import
- 20221206_DML_QUALITY_CONTROL_DATASETS_CERAMICS_UPDATES HOT 1
- Warnings during deploy of BugsCEP harmonized chronologies HOT 1
- Improve deploy-staging script
- Dendro-datat har överflödiga citattecken runt många strängar HOT 4
- Consolidate facet schema DDL and DML HOT 1
- Capacity for defining multiple site identifiers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sead_change_control.