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
210a2d7f
Commit
210a2d7f
authored
Jan 06, 2020
by
Bai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] 更新Session表asset字段长度128
parent
c9dc1ea2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
0018_auto_20191202_1010.py
apps/terminal/migrations/0018_auto_20191202_1010.py
+1
-1
models.py
apps/terminal/models.py
+1
-1
No files found.
apps/terminal/migrations/0018_auto_20191202_1010.py
View file @
210a2d7f
...
...
@@ -41,7 +41,7 @@ class Migration(migrations.Migration):
migrations
.
AlterField
(
model_name
=
'session'
,
name
=
'asset'
,
field
=
models
.
CharField
(
db_index
=
True
,
max_length
=
1
024
,
field
=
models
.
CharField
(
db_index
=
True
,
max_length
=
1
28
,
verbose_name
=
'Asset'
),
),
migrations
.
AlterField
(
...
...
apps/terminal/models.py
View file @
210a2d7f
...
...
@@ -175,7 +175,7 @@ class Session(OrgModelMixin):
id
=
models
.
UUIDField
(
default
=
uuid
.
uuid4
,
primary_key
=
True
)
user
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
_
(
"User"
),
db_index
=
True
)
user_id
=
models
.
CharField
(
blank
=
True
,
default
=
''
,
max_length
=
36
,
db_index
=
True
)
asset
=
models
.
CharField
(
max_length
=
1
024
,
verbose_name
=
_
(
"Asset"
),
db_index
=
True
)
asset
=
models
.
CharField
(
max_length
=
1
28
,
verbose_name
=
_
(
"Asset"
),
db_index
=
True
)
asset_id
=
models
.
CharField
(
blank
=
True
,
default
=
''
,
max_length
=
36
,
db_index
=
True
)
system_user
=
models
.
CharField
(
max_length
=
128
,
verbose_name
=
_
(
"System user"
),
db_index
=
True
)
system_user_id
=
models
.
CharField
(
blank
=
True
,
default
=
''
,
max_length
=
36
,
db_index
=
True
)
...
...
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