Skip to content

Commit

Permalink
Include standard country and year fields in default config.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjolley committed May 23, 2022
1 parent 3f62bbe commit df45df4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/isolatedb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ CREATE TABLE isolates (
id integer NOT NULL UNIQUE,
isolate text NOT NULL,
new_version integer,
country text NOT NULL,
year int,
sender integer NOT NULL,
curator integer NOT NULL,
date_entered date NOT NULL,
Expand Down
6 changes: 6 additions & 0 deletions xml/isolates_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
</system>
<field type="int" required="yes" length="5" maindisplay="yes" comments="primary key">id</field>
<field type="text" required="yes" length="20" maindisplay="yes" comments="isolate name">isolate</field>
<field type="text" required="yes" maindisplay="yes" comments="country where strain was isolated" optlist="yes" values="COUNTRIES" sort="no">country
<optlist>
<option>Unknown</option>
</optlist>
</field>
<field type="int" required="expected" length="4" maindisplay="yes" comments="year of isolation" min="1900" max="CURRENT_YEAR">year</field>
<field type="int" required="yes" length="4" maindisplay="no" comments="sender unique name, link to users">sender</field>
<field type="int" required="yes" length="4" maindisplay="no" comments="curator who entered data,link to users">curator</field>
<field type="date" required="yes" length="10" maindisplay="no" comments="date first entered">date_entered</field>
Expand Down

0 comments on commit df45df4

Please sign in to comment.