Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-CloudComputing
/
C_Team_KhuDrive
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
권주희
2020-06-10 22:29:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8f630a3b624571ffc32feb237d1130d1af9c9b71
8f630a3b
1 parent
4615d42d
add model column
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
backend/api/migrations/0008_item_file_type.py
backend/api/models.py
backend/api/migrations/0008_item_file_type.py
0 → 100644
View file @
8f630a3
# Generated by Django 3.0.6 on 2020-06-10 13:29
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'api'
,
'0007_auto_20200610_1217'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'item'
,
name
=
'file_type'
,
field
=
models
.
CharField
(
max_length
=
100
,
null
=
True
),
),
]
backend/api/models.py
View file @
8f630a3
...
...
@@ -5,6 +5,7 @@ class Item(models.Model):
item_id
=
models
.
AutoField
(
primary_key
=
True
)
is_folder
=
models
.
BooleanField
(
default
=
False
)
name
=
models
.
CharField
(
max_length
=
50
)
file_type
=
models
.
CharField
(
max_length
=
100
,
null
=
True
)
# signed_url 생성을 위해 file type 세팅
path
=
models
.
TextField
()
#parent = models.ForeignKey('Item', on_delete=models.CASCADE, null=True) #related_name
parent
=
models
.
IntegerField
()
...
...
Please
register
or
login
to post a comment