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
627a90fa
Commit
627a90fa
authored
6 years ago
by
Tiago Grego
Browse files
Options
Downloads
Patches
Plain Diff
update ontology schema to 97
parent
9d9c94bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!363
Schema update 97
,
!363
Schema update 97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
misc-scripts/ontology/sql/patch_96_97_a.sql
+27
-0
27 additions, 0 deletions
misc-scripts/ontology/sql/patch_96_97_a.sql
misc-scripts/ontology/sql/tables.sql
+2
-5
2 additions, 5 deletions
misc-scripts/ontology/sql/tables.sql
with
29 additions
and
5 deletions
misc-scripts/ontology/sql/patch_96_97_a.sql
0 → 100644
+
27
−
0
View file @
627a90fa
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2019] EMBL-European Bioinformatics Institute
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
#
patch_96_97_a
.
sql
#
#
Title
:
Update
schema
version
.
#
#
Description
:
#
Update
schema_version
in
meta
table
to
97
.
UPDATE
meta
SET
meta_value
=
'97'
WHERE
meta_key
=
'schema_version'
;
#
Patch
identifier
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_96_97_a.sql|schema_version'
);
This diff is collapsed.
Click to expand it.
misc-scripts/ontology/sql/tables.sql
+
2
−
5
View file @
627a90fa
...
...
@@ -30,14 +30,11 @@ CREATE TABLE `meta` (
#
Add
schema
type
and
schema
version
to
the
meta
table
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'schema_type'
,
'ontology'
),
(
'schema_version'
,
'9
6
'
);
(
'schema_version'
,
'9
7
'
);
#
Patches
included
in
this
schema
file
INSERT
INTO
meta
(
meta_key
,
meta_value
)
VALUES
(
'patch'
,
'patch_95_96_a.sql|schema_version'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_95_96_b.sql|term_ontology_update'
);
VALUES
(
'patch'
,
'patch_96_97_a.sql|schema_version'
);
CREATE
TABLE
`ontology`
(
`ontology_id`
int
(
10
)
unsigned
NOT
NULL
AUTO_INCREMENT
,
...
...
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