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
4291dddf
Commit
4291dddf
authored
Jun 17, 2019
by
Marek Szuba
Browse files
Bump DB schema version to 98, add patch_97_98_a, purge 96_97 patch log
parent
e7b51a29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
14 deletions
+29
-14
sql/patch_97_98_a.sql
sql/patch_97_98_a.sql
+27
-0
sql/table.sql
sql/table.sql
+2
-14
No files found.
sql/patch_97_98_a.sql
0 → 100644
View file @
4291dddf
-- 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_97_98_a
.
sql
#
#
Title
:
Update
schema
version
.
#
#
Description
:
#
Update
schema_version
in
meta
table
to
98
.
UPDATE
meta
SET
meta_value
=
'98'
WHERE
meta_key
=
'schema_version'
;
#
Patch
identifier
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_97_98_a.sql|schema_version'
);
sql/table.sql
View file @
4291dddf
...
...
@@ -308,25 +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
7
'
);
(
NULL
,
'schema_version'
,
'9
8
'
);
#
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_96_97_a.sql|schema_version'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_96_97_b.sql|biotype_so_term'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_96_97_c.sql|rnaproduct_tables'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_96_97_d.sql|add_object_type_rnaproduct'
);
INSERT
INTO
meta
(
species_id
,
meta_key
,
meta_value
)
VALUES
(
NULL
,
'patch'
,
'patch_96_97_e.sql|add_stable_id_event_type_rnaproduct'
);
VALUES
(
NULL
,
'patch'
,
'patch_97_98_a.sql|schema_version'
);
/**
...
...
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