Skip to content
Snippets Groups Projects
Commit 96ebacdb authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

The production database is no longer versioned on the staging server.

parent f93898bb
No related branches found
No related tags found
No related merge requests found
......@@ -70,8 +70,7 @@ my %master;
{
my $dsn = sprintf( 'DBI:mysql:host=%s;port=%d;database=%s',
$master, $dbport,
sprintf( 'ensembl_production_%d', $release ) );
$master, $dbport, 'ensembl_production' );
my $dbh =
DBI->connect( $dsn, $dbuser, $dbpass, { 'PrintError' => 1 } );
......@@ -187,9 +186,8 @@ foreach my $server (@servers) {
. "VALUES (\n\t%s,\n\t%s,\n\t%s\n);\n\n",
$logic_name_lc,
$dbh->quote_identifier(
undef,
sprintf( 'ensembl_production_%d', $release ),
'analysis_description' ),
undef, 'ensembl_production',
'analysis_description' ),
$dbh->quote( $logic_name_lc, SQL_VARCHAR ),
$dbh->quote( $description, SQL_VARCHAR ),
$dbh->quote( $display_label, SQL_VARCHAR ) ) );
......
......@@ -172,10 +172,8 @@ my %master;
foreach my $table (@tables) {
my $master_table = sprintf( 'master_%s', $table );
$master{$table} = fetch_table( $dbh,
sprintf( 'ensembl_production_%d',
$release ),
$master_table );
$master{$table} =
fetch_table( $dbh, 'ensembl_production', $master_table );
}
}
......@@ -310,9 +308,10 @@ foreach my $server (@servers) {
"#HEADS_UP!# INSERT INTO %s (\n\t%s\n) "
. "VALUES (\n\t%s\n);\n",
$dbh->quote_identifier(
undef,
sprintf( 'ensembl_production_%d', $release ),
sprintf( 'master_%s', $table ) ),
undef,
'ensembl_production',
sprintf( 'master_%s', $table )
),
join( ",\n#HEADS_UP!# \t",
map { $dbh->quote_identifier($_) } @fields ),
join(
......
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