Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl
Commits
3ee1ce09
Commit
3ee1ce09
authored
13 years ago
by
Kieron Taylor
Browse files
Options
Downloads
Patches
Plain Diff
Added possibility to prevent --fix applying all patches since Anno Ensembl
parent
3f1ba21a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
misc-scripts/schema_patcher.pl
+10
-2
10 additions, 2 deletions
misc-scripts/schema_patcher.pl
with
10 additions
and
2 deletions
misc-scripts/schema_patcher.pl
+
10
−
2
View file @
3ee1ce09
...
...
@@ -66,6 +66,10 @@ Usage:
--fix also go through all old patches to find any missing
patch (patching starts at release equal to the
oldest patch in the database) >>USE WITH CAUTION<<
Can be used in conjunction with --from to limit the oldest
release to search for patches. Useful for going from last
release to current without missing anything out.
--mysql specify the location of the mysql binary if it is not on
\$PATH. Otherwise we default this to mysql
...
...
@@ -472,14 +476,18 @@ while ( $sth->fetch() ) {
my
$start_version
;
if
(
$opt_fix
)
{
$start_version
=
(
sort
{
$a
<=>
$b
}
keys
%dbpatches
)[
0
];
if
(
$opt_from
)
{
$start_version
=
$opt_from
;
printf
"
Finding patches only as far back as user-selected version %s
\n
",
$opt_from
;
}
else
{
$start_version
=
(
sort
{
$a
<=>
$b
}
keys
%dbpatches
)[
0
];}
if
(
!
defined
(
$start_version
)
)
{
warn
(
sprintf
(
"
No patches in database,
"
.
"
beginning fix from release %d
\n
",
$schema_version
)
);
$start_version
=
$schema_version
;
}
els
e
{
els
if
(
!
$opt_fix
)
{
printf
(
"
Earliest patch in database '%s' is from release %d
\n
",
$database
,
$start_version
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment