Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ensembl-gh-mirror
ensembl
Commits
96ebacdb
Commit
96ebacdb
authored
Nov 01, 2010
by
Andreas Kusalananda Kähäri
Browse files
The production database is no longer versioned on the staging server.
parent
f93898bb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
12 deletions
+9
-12
misc-scripts/production_database/scripts/push_analysis_descriptions.pl
...production_database/scripts/push_analysis_descriptions.pl
+3
-5
misc-scripts/production_database/scripts/push_master_tables.pl
...scripts/production_database/scripts/push_master_tables.pl
+6
-7
No files found.
misc-scripts/production_database/scripts/push_analysis_descriptions.pl
View file @
96ebacdb
...
...
@@ -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
)
)
);
...
...
misc-scripts/production_database/scripts/push_master_tables.pl
View file @
96ebacdb
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment