Commit e88ddc44 authored by Leo Gordon's avatar Leo Gordon
Browse files

use inheritance

parent a81e62b7
## Configuration file for the long multiplication pipeline example (ver 2.0)
## Configuration file for the long multiplication pipeline example
package Bio::EnsEMBL::Hive::PipeConfig::LongMult_conf;
......@@ -25,11 +25,7 @@ sub default_options {
sub pipeline_create_commands {
my ($self) = @_;
return [
'mysql '.$self->dbconn_2_mysql('pipeline_db', 0)." -e 'CREATE DATABASE ".$self->o('pipeline_db','-dbname')."'",
# standard eHive tables and procedures:
'mysql '.$self->dbconn_2_mysql('pipeline_db', 1).' <'.$self->o('ensembl_cvs_root_dir').'/ensembl-hive/sql/tables.sql',
'mysql '.$self->dbconn_2_mysql('pipeline_db', 1).' <'.$self->o('ensembl_cvs_root_dir').'/ensembl-hive/sql/procedures.sql',
@{$self->SUPER::pipeline_create_commands}, # inheriting database and hive table creation
# additional tables needed for long multiplication pipeline's operation:
'mysql '.$self->dbconn_2_mysql('pipeline_db', 1)." -e 'CREATE TABLE intermediate_result (a_multiplier char(40) NOT NULL, digit tinyint NOT NULL, result char(41) NOT NULL, PRIMARY KEY (a_multiplier, digit))'",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment