1 package TomatoGenomePageProp
;
4 extends
'CXGN::Metadata::Dbpatch';
6 has
'+description' => ( default => <<'');
7 Adds an organismprop to the tomato organism turning on its genome page
.
9 has
'+sql' => ( default => <<EOS );
12 ( db_id, accession, version )
13 VALUES ( 71, 'autocreated:genome_page', 1 );
17 (cv_id, name, definition, dbxref_id )
20 ,'attribute for an organism indicating whether an SGN genome page should be displayed for it'
22 ( SELECT dbxref_id FROM dbxref WHERE accession = 'autocreated:genome_page' )
25 INSERT INTO organismprop
26 (organism_id,type_id,value)
27 VALUES (1,(select cvterm_id from cvterm where name = 'genome_page'),1);