Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
862f1033
Commit
862f1033
authored
4 years ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
migration script was failing when db v0.15.x contained subjects
parent
7b0167cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!300
migration script was failing when db v0.15.x contained subjects
Pipeline
#36269
failed
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG
+6
-0
6 additions, 0 deletions
CHANGELOG
smash/web/migrations/0190_remove_study_related_fields.py
+25
-25
25 additions, 25 deletions
smash/web/migrations/0190_remove_study_related_fields.py
with
31 additions
and
25 deletions
CHANGELOG
+
6
−
0
View file @
862f1033
smasch (1.0.0~beta.3-1) unstable; urgency=low
* bug fix: upgrade from 0.15 version containing subjects failed
-- Piotr Gawron <piotr.gawron@uni.lu> Tue, 12 Jan 2021 10:00:00 +0200
smasch (1.0.0~beta.2-1) unstable; urgency=low
* bug fix: npm dependencies must be more strict
...
...
This diff is collapsed.
Click to expand it.
smash/web/migrations/0190_remove_study_related_fields.py
+
25
−
25
View file @
862f1033
...
...
@@ -38,156 +38,156 @@ def create_custom_fields(apps, schema_editor):
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Inconclusive
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_2_result_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Virus 1 RT-PCR
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Inconclusive
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_3_result_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Virus 2 RT-PCR
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Inconclusive
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_4_result_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Virus 3 RT-PCR
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Inconclusive
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_5_result_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Virus 4 RT-PCR
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Inconclusive
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_1_updated_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 0 RT-PCR update date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_2_updated_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 1 RT-PCR update date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_3_updated_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 2 RT-PCR update date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_4_updated_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 3 RT-PCR update date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_5_updated_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 4 RT-PCR update date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_1_collection_date_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 0 RT-PCR collection date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_2_collection_date_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 1 RT-PCR collection date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_3_collection_date_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 2 RT-PCR collection date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_4_collection_date_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 3 RT-PCR collection date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_5_collection_date_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 4 RT-PCR collection date
"
,
type
=
CUSTOM_FIELD_TYPE_DATE
,
study_id
=
GLOBAL_STUDY_ID
,
default
=
""
,
default
_value
=
""
,
readonly
=
True
)
virus_test_1_iga_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 0 IgA Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_2_iga_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 1 IgA Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_3_iga_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 2 IgA Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_4_iga_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 3 IgA Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_5_iga_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 4 IgA Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_1_igg_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 0 IgG Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_2_igg_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 1 IgG Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_3_igg_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 2 IgG Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_4_igg_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 3 IgG Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
virus_test_5_igg_status_field
=
CustomStudySubjectField
.
objects
.
create
(
name
=
"
Visit 4 IgG Status
"
,
type
=
CUSTOM_FIELD_TYPE_SELECT_LIST
,
study_id
=
GLOBAL_STUDY_ID
,
possible_values
=
"
N/A;Positive;Negative;Borderline
"
,
default
=
"
N/A
"
,
default
_value
=
"
N/A
"
,
readonly
=
True
)
for
subject
in
StudySubject
.
objects
.
all
():
...
...
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