10 mx-run ThisPackageName [options] -H hostname -D dbname -u username [-F]
12 This patch add new cvterm vcf_snp_dbxref to nd_protocol
16 This dbpatch adds vcf_snp_dbxref to nd_protocol and nd_protocolprop to provide external links to marker_names
21 Clay Birkett<clb343@cornell.edu>
23 =head1 COPYRIGHT & LICENSE
25 Copyright 2010 Boyce Thompson Institute for Plant Research
27 This program is free software; you can redistribute it and/or modify
28 it under the same terms as Perl itself.
36 use Bio
::Chado
::Schema
;
38 extends
'CXGN::Metadata::Dbpatch';
40 has
'+description' => ( default => <<'' );
41 This patch add new cvterm vcf_snp_dbxref to nd_protocol
52 print STDOUT
"Executing the patch:\n " . $self->name . ".\n\nDescription:\n ". $self->description . ".\n\nExecuted by:\n " . $self->username . " .";
54 print STDOUT
"\nChecking if this db_patch was executed before or if previous db_patches have been executed.\n";
56 print STDOUT
"\nExecuting the SQL commands.\n";
58 my $schema = Bio
::Chado
::Schema
->connect( sub { $self->dbh->clone } );
60 my $term = 'vcf_snp_dbxref';
62 $schema->resultset("Cv::Cvterm")->create_with( {
64 cv
=> 'protocol_property', }
68 print "You're done!\n";