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
4029c656
Commit
4029c656
authored
14 years ago
by
izabel
Browse files
Options
Downloads
Patches
Plain Diff
[LMS-1727] update data.sql script
SVN: 17701
parent
838f3412
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
screening/source/sql/postgresql/006/data.sql
+55
-13
55 additions, 13 deletions
screening/source/sql/postgresql/006/data.sql
with
55 additions
and
13 deletions
screening/source/sql/postgresql/006/data.sql
+
55
−
13
View file @
4029c656
...
@@ -178,6 +178,24 @@ COPY sample_type_property_types (id, saty_id, prty_id, is_mandatory, is_managed_
...
@@ -178,6 +178,24 @@ COPY sample_type_property_types (id, saty_id, prty_id, is_mandatory, is_managed_
-- PostgreSQL database dump complete
-- PostgreSQL database dump complete
--
--
--------------------------------------------------
-- update sequences values
--------------------------------------------------
select
setval
(
'controlled_vocabulary_id_seq'
,
100
);
select
setval
(
'cvte_id_seq'
,
100
);
select
setval
(
'property_type_id_seq'
,
100
);
select
setval
(
'file_format_type_id_seq'
,
100
);
select
setval
(
'filter_id_seq'
,
100
);
select
setval
(
'experiment_type_id_seq'
,
100
);
select
setval
(
'sample_type_id_seq'
,
100
);
select
setval
(
'data_set_type_id_seq'
,
100
);
select
setval
(
'material_type_id_seq'
,
100
);
select
setval
(
'etpt_id_seq'
,
100
);
select
setval
(
'stpt_id_seq'
,
100
);
select
setval
(
'mtpt_id_seq'
,
100
);
--------------------------------------------------
--------------------------------------------------
-- create a gene property and assign it to oligo well
-- create a gene property and assign it to oligo well
--------------------------------------------------
--------------------------------------------------
...
@@ -215,20 +233,44 @@ insert into sample_type_property_types(
...
@@ -215,20 +233,44 @@ insert into sample_type_property_types(
where
saty_id
=
(
select
id
from
sample_types
where
code
=
'OLIGO_WELL'
))
where
saty_id
=
(
select
id
from
sample_types
where
code
=
'OLIGO_WELL'
))
);
);
--------------------------------------------------
--------------------------------------------------
--
upd
ate
sequences value
s
--
Cre
ate
gene property: gene_symbol
s
--------------------------------------------------
--------------------------------------------------
select
setval
(
'controlled_vocabulary_id_seq'
,
100
);
select
setval
(
'cvte_id_seq'
,
100
);
insert
into
property_types
select
setval
(
'property_type_id_seq'
,
100
);
(
id
select
setval
(
'file_format_type_id_seq'
,
100
);
,
code
select
setval
(
'filter_id_seq'
,
100
);
,
description
select
setval
(
'experiment_type_id_seq'
,
100
);
,
label
select
setval
(
'sample_type_id_seq'
,
100
);
,
daty_id
select
setval
(
'data_set_type_id_seq'
,
100
);
,
pers_id_registerer
select
setval
(
'material_type_id_seq'
,
100
);
,
dbin_id
)
select
setval
(
'etpt_id_seq'
,
100
);
values
select
setval
(
'stpt_id_seq'
,
100
);
(
nextval
(
'PROPERTY_TYPE_ID_SEQ'
)
select
setval
(
'mtpt_id_seq'
,
100
);
,
'GENE_SYMBOLS'
,
'Gene symbols'
,
'Gene symbols'
,(
select
id
from
data_types
where
code
=
'VARCHAR'
)
,(
select
id
from
persons
where
user_id
=
'system'
)
,(
select
id
from
database_instances
where
is_original_source
=
'T'
)
);
insert
into
material_type_property_types
(
id
,
maty_id
,
prty_id
,
is_mandatory
,
pers_id_registerer
,
ordinal
)
values
(
nextval
(
'mtpt_id_seq'
),
(
select
id
from
material_types
where
code
=
'GENE'
),
(
select
id
from
property_types
where
code
=
'GENE_SYMBOLS'
),
false
,
(
select
id
from
persons
where
user_id
=
'system'
),
(
select
max
(
ordinal
)
+
1
from
material_type_property_types
where
maty_id
=
(
select
id
from
material_types
where
code
=
'GENE'
))
);
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