Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
6399c37b
Commit
6399c37b
authored
Dec 06, 2018
by
Magali Ruffier
Browse files
ENSCORESW-2967
: update schema to 96
parent
e3f8508b
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
10 deletions
+31
-10
modules/t/test-genome-DBs/test_collection/core/table.sql
modules/t/test-genome-DBs/test_collection/core/table.sql
+2
-2
sql/patch_95_96_a.sql
sql/patch_95_96_a.sql
+27
-0
sql/table.sql
sql/table.sql
+2
-8
No files found.
modules/t/test-genome-DBs/test_collection/core/table.sql
View file @
6399c37b
...
...
@@ -479,7 +479,7 @@ CREATE TABLE `meta` (
PRIMARY
KEY
(
`meta_id`
),
UNIQUE
KEY
`species_key_value_idx`
(
`species_id`
,
`meta_key`
,
`meta_value`
),
KEY
`species_value_idx`
(
`species_id`
,
`meta_value`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
22
2
DEFAULT
CHARSET
=
latin1
;
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
22
4
DEFAULT
CHARSET
=
latin1
;
CREATE
TABLE
`meta_coord`
(
`table_name`
varchar
(
40
)
COLLATE
latin1_bin
NOT
NULL
DEFAULT
''
,
...
...
@@ -533,7 +533,7 @@ CREATE TABLE `object_xref` (
`linkage_annotation`
varchar
(
255
)
COLLATE
latin1_bin
DEFAULT
NULL
,
`analysis_id`
smallint
(
5
)
unsigned
DEFAULT
NULL
,
PRIMARY
KEY
(
`object_xref_id`
),
UNIQUE
KEY
`xref_idx`
(
`xref_id`
,
`ensembl_object_type`
,
`ensembl_id`
,
`analysis_id`
),
UNIQUE
KEY
`xref_idx`
(
`xref_id`
,
`ensembl_object_type`
,
`ensembl_id`
),
KEY
`ensembl_idx`
(
`ensembl_object_type`
,
`ensembl_id`
),
KEY
`analysis_idx`
(
`analysis_id`
)
)
ENGINE
=
MyISAM
AUTO_INCREMENT
=
81424
DEFAULT
CHARSET
=
latin1
COLLATE
=
latin1_bin
;
...
...
sql/patch_95_96_a.sql
0 → 100644
View file @
6399c37b
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
-- Copyright [2016-2018] 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_95_96_a
.
sql
#
#
Title
:
Update
schema
version
.
#
#
Description
:
#
Update
schema_version
in
meta
table
to
96
.
UPDATE
meta
SET
meta_value
=
'96'
WHERE
meta_key
=
'schema_version'
;
#
Patch
identifier
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_95_96_a.sql|schema_version'
);
sql/table.sql
View file @
6399c37b
...
...
@@ -308,19 +308,13 @@ CREATE TABLE IF NOT EXISTS meta (
#
Add
schema
type
and
schema
version
to
the
meta
table
.
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'schema_type'
,
'core'
),
(
NULL
,
'schema_version'
,
'9
5
'
);
(
NULL
,
'schema_version'
,
'9
6
'
);
#
Patches
included
in
this
schema
file
:
#
NOTE
:
At
start
of
release
cycle
,
remove
patch
entries
from
last
release
.
#
NOTE
:
Avoid
line
-
breaks
in
values
.
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_94_95_a.sql|schema_version'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_94_95_b.sql|vertebrate_division_rename'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_94_95_c.sql|ox_key_update'
);
VALUES
(
NULL
,
'patch'
,
'patch_95_96_a.sql|schema_version'
);
/**
...
...
Prev
1
2
3
Next
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