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-hive
Commits
75f332f1
Commit
75f332f1
authored
Aug 13, 2013
by
Leo Gordon
Browse files
Make this patch less mysql-dependent. Needs testing with PostgreSQL.
parent
0132988d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/patch_2013-06-25.sql
sql/patch_2013-06-25.sql
+3
-3
No files found.
sql/patch_2013-06-25.sql
View file @
75f332f1
...
...
@@ -4,15 +4,15 @@ CREATE TABLE hive_meta (
meta_key
VARCHAR
(
80
)
NOT
NULL
PRIMARY
KEY
,
meta_value
TEXT
)
COLLATE
=
latin1_swedish_ci
ENGINE
=
MyISAM
;
);
-- INSERT the 'hive_sql_schema_version' for the first time, then keep UPDATE'ing
INSERT
INTO
hive_meta
(
meta_key
,
meta_value
)
VALUES
(
'hive_sql_schema_version'
,
'49'
);
-- move 'hive_use_triggers' into hive_meta:
INSERT
IGNORE
INTO
hive_meta
(
meta_key
,
meta_value
)
SELECT
'hive_use_triggers'
,
COALESCE
(
MIN
(
REPLACE
(
meta_value
,
'"'
,
''
)),
0
)
FROM
meta
WHERE
meta_key
=
'hive_use_triggers'
;
INSERT
INTO
hive_meta
(
meta_key
,
meta_value
)
SELECT
'hive_use_triggers'
,
COALESCE
(
MIN
(
REPLACE
(
meta_value
,
'"'
,
''
)),
0
)
FROM
meta
WHERE
meta_key
=
'hive_use_triggers'
;
-- move 'pipeline_name' into hive_meta and rename it into 'hive_pipeline_name':
INSERT
IGNORE
INTO
hive_meta
(
meta_key
,
meta_value
)
SELECT
'hive_pipeline_name'
,
REPLACE
(
meta_value
,
'"'
,
''
)
FROM
meta
WHERE
meta_key
=
'pipeline_name'
or
meta_key
=
'name'
;
INSERT
INTO
hive_meta
(
meta_key
,
meta_value
)
SELECT
'hive_pipeline_name'
,
REPLACE
(
meta_value
,
'"'
,
''
)
FROM
meta
WHERE
meta_key
=
'pipeline_name'
or
meta_key
=
'name'
;
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