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
9653915a
Commit
9653915a
authored
18 years ago
by
Glenn Proctor
Browse files
Options
Downloads
Patches
Plain Diff
*** empty log message ***
parent
c3f89435
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/README.schema_patching
+43
-0
43 additions, 0 deletions
misc-scripts/README.schema_patching
with
43 additions
and
0 deletions
misc-scripts/README.schema_patching
0 → 100644
+
43
−
0
View file @
9653915a
Schema patching using patch_schema.pl
=====================================
Schema patches are split into multiple files, each containing one
"task". The convention for patch files (in ensembl/sql) is:
patch_FROM_TO_[a-z].sql
where FROM is the schema version before patching, TO the version to
patch to, and [a-z] is a letter specifying the respective patch.
each patch will put an entry into the meta table (meta_key = 'patch') to
indicate that it has been applied successfully. this should make it
easier to track which patches have been applied to which dbs.
this meta information is also used by the new script to determine which
patches need to be applied to a db (note that you can still apply the
patches manually if you prefer). the script is
ensembl/misc-scripts/schema_patch.pl, run with --help to see all options
it accepts (on the commandline or from an ini-style script passed in
with --conffile).
Your usual procedure as a release coordinator would probably be:
1. check which patches need to be applied:
this step is entirely optional, you can proceed to step (2) immediately
if you like.
$ ensembl/misc-scripts/schema_patch.pl --host ecs2 --port 3364 \
--user ensadmin --pass ensembl --pattern %_core_39_% --schema 39 \
--dry_run 1 --interactive 0
2. actually patch the databases:
$ ensembl/misc-scripts/schema_patch.pl --host ecs2 --port 3364 \
--user ensadmin --pass ensembl --pattern %_core_39_% --schema 39 \
--logfile /your/log/patch/schema_patch.39.log
the script will run interactively and prompt you for each database
matching the pattern. --logfile is optional but useful for keeping track
of what you've done.
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