Skip to content

Commit

Permalink
Merge pull request #4820 from mtbc/add-enums-minimal
Browse files Browse the repository at this point in the history
add enumeration values for acquisition mode
  • Loading branch information
sbesson committed Sep 23, 2016
2 parents 6888b58 + 99b95c4 commit 2d2ba8f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/model/resources/mappings/acquisition.ome.xml
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,9 @@
<entry name="LCM"/>
<entry name="Other"/>
<entry name="Unknown"/>
<entry name="BrightField"/>
<entry name="SweptFieldConfocal"/>
<entry name="SPIM"/>
</enum>
<!-- Detector Settings Entity -->
<enum id="ome.model.enums.Binning">
Expand Down
12 changes: 12 additions & 0 deletions sql/psql/OMERO5.3DEV__10/enums_update.sql
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,18 @@ insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-35,'Unknown' from acquisitionmode where not exists(
select 1 from acquisitionmode where value = 'Unknown') limit 1;

insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-35,'BrightField' from acquisitionmode where not exists(
select 1 from acquisitionmode where value = 'BrightField') limit 1;

insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-35,'SweptFieldConfocal' from acquisitionmode where not exists(
select 1 from acquisitionmode where value = 'SweptFieldConfocal') limit 1;

insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-35,'SPIM' from acquisitionmode where not exists(
select 1 from acquisitionmode where value = 'SPIM') limit 1;

insert into arctype (id,permissions,value)
select ome_nextval('seq_arctype'),-35,'Hg' from arctype where not exists(
select 1 from arctype where value = 'Hg') limit 1;
Expand Down
6 changes: 6 additions & 0 deletions sql/psql/OMERO5.3DEV__10/psql-footer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2149,6 +2149,12 @@ insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-52,'Other';
insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-52,'Unknown';
insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-52,'BrightField';
insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-52,'SweptFieldConfocal';
insert into acquisitionmode (id,permissions,value)
select ome_nextval('seq_acquisitionmode'),-52,'SPIM';
insert into arctype (id,permissions,value)
select ome_nextval('seq_arctype'),-52,'Hg';
insert into arctype (id,permissions,value)
Expand Down

0 comments on commit 2d2ba8f

Please sign in to comment.