Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
7c06120d
Commit
7c06120d
authored
Oct 29, 2018
by
Lukas Burgey
Browse files
Perform migration
parent
ca506c71
Changes
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/migrations/0010_credentialstate.py
0 → 100644
View file @
7c06120d
# Generated by Django 2.1 on 2018-10-29 14:20
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'backend'
,
'0009_auto_20180821_1529'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'CredentialState'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'state'
,
models
.
CharField
(
choices
=
[(
'deployed'
,
'Deployed'
),
(
'not_deployed'
,
'Not deployed'
)],
default
=
'not_deployed'
,
max_length
=
50
)),
(
'credential'
,
models
.
ForeignKey
(
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
related_name
=
'credential_states'
,
to
=
'backend.SSHPublicKey'
)),
(
'target'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'credential_states'
,
to
=
'backend.NewDeploymentStateItem'
)),
],
),
]
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