Skip to content

Commit

Permalink
manually re-sync schema with DB
Browse files Browse the repository at this point in the history
  • Loading branch information
sjanssen2 committed May 6, 2017
1 parent b1274cc commit 1098860
Showing 1 changed file with 15 additions and 26 deletions.
41 changes: 15 additions & 26 deletions amgut/db/ag.dbs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
</table>
<table name="ag_handout_barcodes" >
<column name="kit_id" type="varchar" jt="12" mandatory="y" />
<column name="sample_barcode_file" type="varchar" length="13" jt="12" mandatory="y" />
<column name="barcode" type="varchar" length="9" jt="12" mandatory="y" />
<column name="sample_barcode_file" type="varchar" length="13" jt="12" mandatory="y" />
<index name="idx_handout_barcode_1" unique="NORMAL" >
<column name="kit_id" />
</index>
Expand Down Expand Up @@ -110,7 +110,6 @@
<column name="sample_barcode_file_md5" type="varchar" length="50" jt="12" />
<column name="site_sampled" type="varchar" length="200" jt="12" />
<column name="sample_date" type="date" length="20" jt="91" />
<column name="participant_name" type="varchar" length="200" jt="12" />
<column name="sample_time" type="time" length="100" jt="92" />
<column name="notes" type="varchar" length="2000" jt="12" />
<column name="environment_sampled" type="varchar" length="100" jt="12" />
Expand Down Expand Up @@ -288,6 +287,7 @@
<comment><![CDATA[The ISO code for the country]]></comment>
</column>
<column name="country" type="varchar" length="2147483647" jt="12" mandatory="y" />
<column name="ebi" type="varchar" length="3" jt="12" />
<index name="pk_iso_country_lookup" unique="PRIMARY_KEY" >
<column name="iso_code" />
</index>
Expand Down Expand Up @@ -329,16 +329,6 @@
<fk_column name="email" pk="email" />
</fk>
</table>
<table name="promoted_survey_ids" >
<comment>Keeps track of the survey_ids that correspond to surveys that were ported from first questionnaire to the second</comment>
<column name="survey_id" type="varchar" length="2147483647" jt="12" mandatory="y" />
<index name="pk_promoted_survey_ids" unique="PRIMARY_KEY" >
<column name="survey_id" />
</index>
<fk name="fk_promoted_survey_ids" to_schema="ag" to_table="ag_login_surveys" >
<fk_column name="survey_id" pk="survey_id" />
</fk>
</table>
<table name="settings" >
<column name="test_environment" type="varchar" length="2147483647" jt="12" />
<column name="base_data_dir" type="varchar" length="2147483647" jt="12" />
Expand Down Expand Up @@ -423,19 +413,19 @@
<column name="survey_question_id" type="bigint" jt="-5" mandatory="y" >
<comment><![CDATA[The unique question ID]]></comment>
</column>
<column name="retired" type="bool" jt="-7" >
<defo>&#039;F&#039;</defo>
<comment><![CDATA[Whether the question is shown or not]]></comment>
</column>
<column name="question_shortname" type="varchar" length="100" jt="12" mandatory="y" >
<comment><![CDATA[A QIIME mapping file-compatible header that describes the question and can be used for metadata pulldown]]></comment>
</column>
<column name="american" type="varchar" length="2147483647" jt="12" >
<comment><![CDATA[The american english version of the question]]></comment>
</column>
<column name="british" type="varchar" length="2147483647" jt="12" >
<comment><![CDATA[The british english version of the question]]></comment>
</column>
<column name="question_shortname" type="varchar" length="100" jt="12" mandatory="y" >
<comment><![CDATA[A QIIME mapping file-compatible header that describes the question and can be used for metadata pulldown]]></comment>
</column>
<column name="retired" type="bool" jt="-7" >
<defo>&#039;F&#039;</defo>
<comment><![CDATA[Whether the question is shown or not]]></comment>
</column>
<index name="pk_human_survey_question" unique="PRIMARY_KEY" >
<column name="survey_question_id" />
</index>
Expand Down Expand Up @@ -565,6 +555,7 @@
<column name="longitude" type="float8" jt="6" />
<column name="elevation" type="float8" jt="6" />
<column name="cannot_geocode" type="bool" jt="-7" />
<column name="country" type="varchar" length="9" jt="12" />
<index name="zipcodes_pkey" unique="PRIMARY_KEY" >
<column name="zipcode" />
</index>
Expand Down Expand Up @@ -22349,33 +22340,32 @@ AS $function$xpath_exists$function$
<entity schema="ag" name="survey_question_triggers" color="a8c4ef" x="672" y="2128" />
<entity schema="ag" name="survey_response" color="a8c4ef" x="720" y="2336" />
<entity schema="ag" name="survey_question_response" color="ffcccc" x="720" y="2240" />
<entity schema="ag" name="iso_country_lookup" color="ffffff" x="928" y="2320" />
<entity schema="ag" name="survey_question_response_type" color="ffcccc" x="720" y="2432" />
<entity schema="ag" name="zipcodes" color="c6c6f7" x="1248" y="80" />
<entity schema="ag" name="survey_answers" color="a8c4ef" x="960" y="1120" />
<entity schema="ag" name="external_survey_answers" color="a8c4ef" x="992" y="1232" />
<entity schema="barcodes" name="plate" color="a8c4ef" x="272" y="848" />
<entity schema="barcodes" name="project_barcode" color="a8c4ef" x="304" y="752" />
<entity schema="barcodes" name="plate_barcode" color="a8c4ef" x="112" y="848" />
<entity schema="ag" name="external_survey_sources" color="a8c4ef" x="944" y="1376" />
<entity schema="ag" name="ag_handout_barcodes" color="a8c4ef" x="256" y="368" />
<entity schema="barcodes" name="project" color="a8c4ef" x="320" y="656" />
<entity schema="barcodes" name="barcode" color="a8c4ef" x="80" y="640" />
<entity schema="ag" name="survey_question" color="a8c4ef" x="448" y="2240" />
<entity schema="ag" name="ag_handout_kits" color="a8c4ef" x="64" y="368" />
<entity schema="ag" name="ag_kit" color="f7e2c6" x="512" y="1408" />
<entity schema="ag" name="duplicate_consents" color="b7c8e3" x="832" y="896" />
<entity schema="ag" name="ag_login" color="f7e2c6" x="112" y="1120" />
<entity schema="ag" name="ag_consent" color="c6d9f7" x="992" y="560" />
<entity schema="ag" name="ag_login_surveys" color="ffcccc" x="1040" y="896" />
<entity schema="ag" name="ag_kit_barcodes" color="f7e2c6" x="128" y="1600" />
<entity schema="ag" name="settings" color="a8c4ef" x="48" y="96" />
<entity schema="ag" name="consent_revoked" color="b7c8e3" x="864" y="384" />
<entity schema="ag" name="promoted_survey_ids" color="a8c4ef" x="1040" y="816" />
<entity schema="ag" name="surveys" color="a8c4ef" x="128" y="2208" />
<entity schema="ag" name="labadmin_users" color="b2cdf7" x="1248" y="2080" />
<entity schema="ag" name="labadmin_access" color="b2cdf7" x="1248" y="2320" />
<entity schema="ag" name="labadmin_users_access" color="b2cdf7" x="1232" y="2208" />
<entity schema="ag" name="zipcodes" color="c6c6f7" x="1248" y="80" />
<entity schema="ag" name="ag_handout_barcodes" color="a8c4ef" x="256" y="368" />
<entity schema="ag" name="ag_kit_barcodes" color="f7e2c6" x="128" y="1600" />
<entity schema="ag" name="survey_question" color="a8c4ef" x="448" y="2240" />
<entity schema="ag" name="iso_country_lookup" color="ffffff" x="928" y="2320" />
<group name="ag_survey_multiples" color="faf6f0" >
<comment>Used by : american_gut_consent</comment>
<entity schema="ag" name="ag_kit" />
Expand All @@ -22395,7 +22385,6 @@ AS $function$xpath_exists$function$
<entity schema="ag" name="external_survey_sources" />
<entity schema="ag" name="duplicate_consents" />
<entity schema="ag" name="consent_revoked" />
<entity schema="ag" name="promoted_survey_ids" />
</group>
<group name="controlled_vocab_values" color="f0f0fa" >
<comment>Used by : american_gut_consent</comment>
Expand Down

0 comments on commit 1098860

Please sign in to comment.