Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
701107b3
Commit
701107b3
authored
14 years ago
by
felmer
Browse files
Options
Downloads
Patches
Plain Diff
removed stuff added again
SVN: 19943
parent
a66a5df6
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
openbis/source/sql/postgresql/migration/migration-065-066.sql
+40
-0
40 additions, 0 deletions
...bis/source/sql/postgresql/migration/migration-065-066.sql
with
40 additions
and
0 deletions
openbis/source/sql/postgresql/migration/migration-065-066.sql
+
40
−
0
View file @
701107b3
-- Migration from 065 to 066
ALTER
TABLE
EXTERNAL_DATA
ADD
COLUMN
SHARE_ID
CODE
;
ALTER
TABLE
EXTERNAL_DATA
ADD
COLUMN
SIZE
ORDINAL_INT
;
----------------------------------------------------------------------------------------------------
-- Redo part of migration from 056 to 057
--
-- Introduction of a new data type - XML, was done in migration but data.sql wasn't updated.
-- Add the XML data type it if it doesn't exist.
----------------------------------------------------------------------------------------------------
CREATE
OR
REPLACE
FUNCTION
insert_xml_data_type_if_not_exists
()
RETURNS
void
AS
$$
DECLARE
exists
bool
;
BEGIN
SELECT
true
INTO
exists
FROM
data_types
WHERE
code
=
'XML'
;
IF
exists
IS
NULL
then
-- XML data type doesn't exist - insert it
INSERT
INTO
data_types
(
id
,
code
,
description
)
VALUES
(
nextval
(
'data_type_id_seq'
),
'XML'
,
'XML document'
);
END
IF
;
END
;
$$
LANGUAGE
'plpgsql'
;
SELECT
insert_xml_data_type_if_not_exists
();
DROP
FUNCTION
insert_xml_data_type_if_not_exists
();
----------------------------------------------------------------------------------------------------
-- Redo part of migration from 063 to 064
--
-- Domain SCRIPT_TYPE created in migration has different values than the one in domain.sql.
-- Alter the domain.
----------------------------------------------------------------------------------------------------
ALTER
DOMAIN
script_type
DROP
CONSTRAINT
script_type_check
;
ALTER
DOMAIN
script_type
ADD
CONSTRAINT
script_type_check
CHECK
(
VALUE
IN
(
'DYNAMIC_PROPERTY'
,
'MANAGED_PROPERTY'
));
--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------
-- This is a screening specific migration. Nothing will be performed on openBIS databases
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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