Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
c9087beb
Commit
c9087beb
authored
6 years ago
by
Jörn Künsemöller
Browse files
Options
Downloads
Patches
Plain Diff
Task
LSMR-14
: Updated migrations
parent
85576d64
No related branches found
No related tags found
1 merge request
!87
Lsmr epic
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitattributes
+1
-1
1 addition, 1 deletion
.gitattributes
SAS/LSMR/src/lsmr/lsmrapp/migrations/0002_auto_20180710_0922.py
+312
-0
312 additions, 0 deletions
...MR/src/lsmr/lsmrapp/migrations/0002_auto_20180710_0922.py
with
313 additions
and
1 deletion
.gitattributes
+
1
−
1
View file @
c9087beb
...
...
@@ -4245,7 +4245,7 @@ SAS/LSMR/src/lsmr/lsmrapp/__init__.py -text
SAS/LSMR/src/lsmr/lsmrapp/admin.py -text
SAS/LSMR/src/lsmr/lsmrapp/apps.py -text
SAS/LSMR/src/lsmr/lsmrapp/migrations/0001_initial.py -text
SAS/LSMR/src/lsmr/lsmrapp/migrations/0002_auto_201807
05_0736
.py -text
SAS/LSMR/src/lsmr/lsmrapp/migrations/0002_auto_201807
10_0922
.py -text
SAS/LSMR/src/lsmr/lsmrapp/migrations/CMakeLists.txt -text
SAS/LSMR/src/lsmr/lsmrapp/migrations/__init__.py -text
SAS/LSMR/src/lsmr/lsmrapp/models/CMakeLists.txt -text
...
...
This diff is collapsed.
Click to expand it.
SAS/LSMR/src/lsmr/lsmrapp/migrations/0002_auto_201807
05_0736
.py
→
SAS/LSMR/src/lsmr/lsmrapp/migrations/0002_auto_201807
10_0922
.py
+
312
−
0
View file @
c9087beb
# Generated by Django 2.0.6 on 2018-07-
05 07:36
# Generated by Django 2.0.6 on 2018-07-
10 09:22
import
django.contrib.postgres.fields
import
django.contrib.postgres.fields.jsonb
...
...
@@ -15,6 +15,20 @@ class Migration(migrations.Migration):
]
operations
=
[
migrations
.
CreateModel
(
name
=
'
Cycle
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
30
)),
(
'
start
'
,
models
.
DateTimeField
()),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
GeneratorTemplate
'
,
fields
=
[
...
...
@@ -33,6 +47,70 @@ class Migration(migrations.Migration):
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
Project
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
30
)),
(
'
priority
'
,
models
.
IntegerField
(
default
=
0
)),
(
'
can_trigger
'
,
models
.
BooleanField
(
default
=
False
)),
(
'
private_data
'
,
models
.
BooleanField
(
default
=
True
)),
(
'
cycle
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
projects
'
,
to
=
'
lsmrapp.Cycle
'
)),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
Run
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
requirements_doc
'
,
django
.
contrib
.
postgres
.
fields
.
jsonb
.
JSONField
()),
(
'
do_cancel
'
,
models
.
BooleanField
()),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
RunBlueprint
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
30
)),
(
'
requirements_doc
'
,
django
.
contrib
.
postgres
.
fields
.
jsonb
.
JSONField
()),
(
'
copy_reason
'
,
models
.
CharField
(
choices
=
[(
'
TEMPLATE
'
,
'
TEMPLATE
'
),
(
'
REPEATED
'
,
'
REPEATED
'
)],
max_length
=
30
)),
(
'
generator_param
'
,
models
.
CharField
(
max_length
=
200
)),
(
'
copies
'
,
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
related_name
=
'
copied_from
'
,
to
=
'
lsmrapp.RunBlueprint
'
)),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
RunSet
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
30
)),
(
'
generator_parameters_doc
'
,
django
.
contrib
.
postgres
.
fields
.
jsonb
.
JSONField
()),
(
'
generator_template
'
,
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'
lsmrapp.GeneratorTemplate
'
)),
(
'
project
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
run_sets
'
,
to
=
'
lsmrapp.Project
'
)),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
RunTemplate
'
,
fields
=
[
...
...
@@ -84,6 +162,70 @@ class Migration(migrations.Migration):
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
WorkRequest
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
requirements_doc
'
,
django
.
contrib
.
postgres
.
fields
.
jsonb
.
JSONField
()),
(
'
do_cancel
'
,
models
.
BooleanField
()),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
WorkRequestBlueprint
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
30
)),
(
'
requirements_doc
'
,
django
.
contrib
.
postgres
.
fields
.
jsonb
.
JSONField
()),
(
'
copy_reason
'
,
models
.
CharField
(
choices
=
[(
'
TEMPLATE
'
,
'
TEMPLATE
'
),
(
'
REPEATED
'
,
'
REPEATED
'
)],
max_length
=
30
)),
(
'
copies
'
,
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
related_name
=
'
copied_from
'
,
to
=
'
lsmrapp.WorkRequestBlueprint
'
)),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
WorkRequestRelation
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
selection_doc
'
,
django
.
contrib
.
postgres
.
fields
.
jsonb
.
JSONField
()),
(
'
dataformat
'
,
models
.
CharField
(
choices
=
[(
'
MEASUREMENTSET
'
,
'
MeasurementSet
'
),
(
'
HDF5
'
,
'
HDF5
'
)],
max_length
=
30
)),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
WorkRequestRelationBlueprint
'
,
fields
=
[
(
'
id
'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'
ID
'
)),
(
'
tags
'
,
django
.
contrib
.
postgres
.
fields
.
ArrayField
(
base_field
=
models
.
CharField
(
max_length
=
30
),
blank
=
True
,
size
=
8
)),
(
'
creation
'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'
update
'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'
name
'
,
models
.
CharField
(
max_length
=
30
)),
(
'
selection_doc
'
,
django
.
contrib
.
postgres
.
fields
.
jsonb
.
JSONField
()),
(
'
dataformat
'
,
models
.
CharField
(
choices
=
[(
'
MEASUREMENTSET
'
,
'
MeasurementSet
'
),
(
'
HDF5
'
,
'
HDF5
'
)],
max_length
=
30
)),
(
'
blueprint
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'
lsmrapp.WorkRelationSelectionTemplate
'
)),
(
'
consumer
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_blueprint_consumer
'
,
to
=
'
lsmrapp.WorkRequestBlueprint
'
)),
(
'
input_role
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_blueprint_input_role
'
,
to
=
'
lsmrapp.WorkIORoles
'
)),
(
'
output_role
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_blueprint_output_role
'
,
to
=
'
lsmrapp.WorkIORoles
'
)),
(
'
producer
'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_blueprint_producer
'
,
to
=
'
lsmrapp.WorkRequestBlueprint
'
)),
],
options
=
{
'
abstract
'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'
WorkRequestTemplate
'
,
fields
=
[
...
...
@@ -102,6 +244,41 @@ class Migration(migrations.Migration):
'
abstract
'
:
False
,
},
),
migrations
.
AddField
(
model_name
=
'
workrequestrelation
'
,
name
=
'
blueprint
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'
lsmrapp.WorkRequestRelationBlueprint
'
),
),
migrations
.
AddField
(
model_name
=
'
workrequestrelation
'
,
name
=
'
consumer
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_consumer
'
,
to
=
'
lsmrapp.WorkRequest
'
),
),
migrations
.
AddField
(
model_name
=
'
workrequestrelation
'
,
name
=
'
input_role
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_input_role
'
,
to
=
'
lsmrapp.WorkIORoles
'
),
),
migrations
.
AddField
(
model_name
=
'
workrequestrelation
'
,
name
=
'
output_role
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_output_role
'
,
to
=
'
lsmrapp.WorkIORoles
'
),
),
migrations
.
AddField
(
model_name
=
'
workrequestrelation
'
,
name
=
'
producer
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
work_request_relation_producer
'
,
to
=
'
lsmrapp.WorkRequest
'
),
),
migrations
.
AddField
(
model_name
=
'
workrequest
'
,
name
=
'
blueprint
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
related_work_requests
'
,
to
=
'
lsmrapp.WorkRequestBlueprint
'
),
),
migrations
.
AddField
(
model_name
=
'
workrequest
'
,
name
=
'
template
'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'
lsmrapp.WorkRequestTemplate
'
),
),
migrations
.
AddField
(
model_name
=
'
workioroles
'
,
name
=
'
inputs
'
,
...
...
@@ -112,4 +289,24 @@ class Migration(migrations.Migration):
name
=
'
outputs
'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
role_output
'
,
to
=
'
lsmrapp.WorkRequestTemplate
'
),
),
migrations
.
AddField
(
model_name
=
'
runblueprint
'
,
name
=
'
generator_source
'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'
lsmrapp.RunSet
'
),
),
migrations
.
AddField
(
model_name
=
'
runblueprint
'
,
name
=
'
run_set
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
run_blueprints
'
,
to
=
'
lsmrapp.RunSet
'
),
),
migrations
.
AddField
(
model_name
=
'
run
'
,
name
=
'
blueprint
'
,
field
=
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'
related_runs
'
,
to
=
'
lsmrapp.RunBlueprint
'
),
),
migrations
.
AddField
(
model_name
=
'
run
'
,
name
=
'
template
'
,
field
=
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'
lsmrapp.RunTemplate
'
),
),
]
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