Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
feudal
feudalBackend
Commits
7c06120d
Commit
7c06120d
authored
Oct 29, 2018
by
Lukas Burgey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform migration
parent
ca506c71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
feudal/backend/migrations/0010_credentialstate.py
feudal/backend/migrations/0010_credentialstate.py
+23
-0
No files found.
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