Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
01745ead
Commit
01745ead
authored
Mar 18, 2019
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 添加migrations
parent
4e705a52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
0026_auto_20190318_1023.py
apps/assets/migrations/0026_auto_20190318_1023.py
+43
-0
0006_auto_20190318_1023.py
apps/ops/migrations/0006_auto_20190318_1023.py
+18
-0
No files found.
apps/assets/migrations/0026_auto_20190318_1023.py
0 → 100644
View file @
01745ead
# Generated by Django 2.1.7 on 2019-03-18 02:23
import
assets.models.utils
import
django.core.validators
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
uuid
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'assets'
,
'0025_auto_20190221_1902'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'AuthBook'
,
fields
=
[
(
'org_id'
,
models
.
CharField
(
blank
=
True
,
db_index
=
True
,
default
=
''
,
max_length
=
36
,
verbose_name
=
'Organization'
)),
(
'id'
,
models
.
UUIDField
(
default
=
uuid
.
uuid4
,
primary_key
=
True
,
serialize
=
False
)),
(
'name'
,
models
.
CharField
(
max_length
=
128
,
verbose_name
=
'Name'
)),
(
'username'
,
models
.
CharField
(
blank
=
True
,
max_length
=
32
,
validators
=
[
django
.
core
.
validators
.
RegexValidator
(
'^[0-9a-zA-Z_@
\\
-
\\
.]*$'
,
'Special char not allowed'
)],
verbose_name
=
'Username'
)),
(
'_password'
,
models
.
CharField
(
blank
=
True
,
max_length
=
256
,
null
=
True
,
verbose_name
=
'Password'
)),
(
'_private_key'
,
models
.
TextField
(
blank
=
True
,
max_length
=
4096
,
null
=
True
,
validators
=
[
assets
.
models
.
utils
.
private_key_validator
],
verbose_name
=
'SSH private key'
)),
(
'_public_key'
,
models
.
TextField
(
blank
=
True
,
max_length
=
4096
,
verbose_name
=
'SSH public key'
)),
(
'comment'
,
models
.
TextField
(
blank
=
True
,
verbose_name
=
'Comment'
)),
(
'date_created'
,
models
.
DateTimeField
(
auto_now_add
=
True
)),
(
'date_updated'
,
models
.
DateTimeField
(
auto_now
=
True
)),
(
'created_by'
,
models
.
CharField
(
max_length
=
128
,
null
=
True
,
verbose_name
=
'Created by'
)),
(
'is_latest'
,
models
.
BooleanField
(
default
=
False
,
verbose_name
=
'最新版本'
)),
(
'version'
,
models
.
IntegerField
(
default
=
1
,
verbose_name
=
'版本'
)),
(
'asset'
,
models
.
ForeignKey
(
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'assets.Asset'
,
verbose_name
=
'资产'
)),
],
options
=
{
'verbose_name'
:
'AuthBook'
,
},
),
migrations
.
AlterModelOptions
(
name
=
'node'
,
options
=
{
'ordering'
:
[
'key'
],
'verbose_name'
:
'Node'
},
),
]
apps/ops/migrations/0006_auto_20190318_1023.py
0 → 100644
View file @
01745ead
# Generated by Django 2.1.7 on 2019-03-18 02:23
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'ops'
,
'0005_auto_20181219_1807'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'adhoc'
,
name
=
'run_as'
,
field
=
models
.
CharField
(
default
=
''
,
max_length
=
64
,
null
=
True
,
verbose_name
=
'Username'
),
),
]
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