Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
JoinTheCity
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
Rafal
JoinTheCity
Commits
ac52ba3c
Commit
ac52ba3c
authored
Jan 13, 2016
by
Rafal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add script to proper place, delede init migration
parent
840ca83a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
98 additions
and
44 deletions
+98
-44
0001_initial.py
JoinTheCityREST/app/API/migrations/0001_initial.py
+24
-5
0001_initial.py
JoinTheCityREST/app/Discussion/migrations/0001_initial.py
+31
-10
0001_initial.py
JoinTheCityREST/app/Event/migrations/0001_initial.py
+15
-5
0001_initial.py
JoinTheCityREST/app/Friendship/migrations/0001_initial.py
+10
-14
0001_initial.py
JoinTheCityREST/app/Localization/migrations/0001_initial.py
+9
-5
0001_initial.py
JoinTheCityREST/app/Tag/migrations/0001_initial.py
+9
-5
delete_migrations.py
JoinTheCityREST/app/delete_migrations.py
+0
-0
No files found.
JoinTheCityREST/app/API/migrations/0001_initial.py
View file @
ac52ba3c
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-13 10:25
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
(
'Tag'
,
'0001_initial'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'API'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
)),
(
'source'
,
models
.
CharField
(
max_length
=
100
)),
(
'icon'
,
models
.
ImageField
(
blank
=
True
,
null
=
True
,
upload_to
=
b
''
)),
(
'description'
,
models
.
CharField
(
blank
=
True
,
default
=
None
,
max_length
=
300
,
null
=
True
)),
(
'tag'
,
models
.
ManyToManyField
(
default
=
None
,
related_name
=
'API_tags'
,
to
=
'Tag.Tag'
)),
],
),
migrations
.
CreateModel
(
name
=
'APIType'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
AddField
(
model_name
=
'api'
,
name
=
'type'
,
field
=
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'API_type'
,
to
=
'API.APIType'
),
),
]
JoinTheCityREST/app/Discussion/migrations/0001_initial.py
View file @
ac52ba3c
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-13 10:25
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
django.utils.datetime_safe
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
(
'Tag'
,
'0001_initial'
),
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Discussion'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'question'
,
models
.
CharField
(
max_length
=
100
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'Message'
,
name
=
'
Text
Message'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'text'
,
models
.
CharField
(
max_length
=
1000
)),
(
'created_at'
,
models
.
DateTimeField
(
default
=
django
.
utils
.
datetime_safe
.
datetime
.
now
)),
(
'user'
,
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'user_creator_of_message'
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
AddField
(
model_name
=
'discussion'
,
name
=
'message'
,
field
=
models
.
ManyToManyField
(
blank
=
True
,
related_name
=
'conversations_participant'
,
to
=
'Discussion.TextMessage'
),
),
migrations
.
AddField
(
model_name
=
'discussion'
,
name
=
'tag'
,
field
=
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'place_of_discussion'
,
to
=
'Tag.Tag'
),
),
migrations
.
AddField
(
model_name
=
'discussion'
,
name
=
'user'
,
field
=
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'user_creator_of_discussion'
,
to
=
settings
.
AUTH_USER_MODEL
),
),
]
JoinTheCityREST/app/Event/migrations/0001_initial.py
View file @
ac52ba3c
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-13 10:25
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
(
'Tag'
,
'0001_initial'
),
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
(
'Localization'
,
'0001_initial'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Event'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
100
)),
(
'private'
,
models
.
BooleanField
(
default
=
False
)),
(
'localization'
,
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'event_tag'
,
to
=
'Localization.Localization'
)),
(
'tag'
,
models
.
ManyToManyField
(
default
=
None
,
related_name
=
'event_tag'
,
to
=
'Tag.Tag'
)),
(
'user'
,
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'event_author'
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
]
JoinTheCityREST/app/Friendship/migrations/0001_initial.py
View file @
ac52ba3c
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-13 10:25
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Friendship'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'FriendshipRequest'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'created_by'
,
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'user_friendship_request_creator'
,
to
=
settings
.
AUTH_USER_MODEL
)),
(
'user'
,
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'user_friendship_request_target'
,
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
]
JoinTheCityREST/app/Localization/migrations/0001_initial.py
View file @
ac52ba3c
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-13 10:25
from
__future__
import
unicode_literals
from
django.db
import
m
odels
,
migration
s
from
django.db
import
m
igrations
,
model
s
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
...
...
@@ -13,10 +16,11 @@ class Migration(migrations.Migration):
migrations
.
CreateModel
(
name
=
'Localization'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
300
)),
(
'longitude'
,
models
.
DecimalField
(
decimal_places
=
6
,
default
=
None
,
max_digits
=
9
)),
(
'latitude'
,
models
.
DecimalField
(
decimal_places
=
6
,
default
=
None
,
max_digits
=
9
)),
(
'range'
,
models
.
IntegerField
(
default
=
None
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
]
JoinTheCityREST/app/Tag/migrations/0001_initial.py
View file @
ac52ba3c
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-13 10:25
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
(
'Localization'
,
'0001_initial'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Tag'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
verbose_name
=
'ID'
,
serialize
=
False
,
auto_created
=
True
,
primary_key
=
True
)),
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
300
)),
(
'localization'
,
models
.
ForeignKey
(
default
=
None
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
related_name
=
'tag_localization'
,
to
=
'Localization.Localization'
)),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
]
JoinTheCityREST/
JoinTheCityREST
/delete_migrations.py
→
JoinTheCityREST/
app
/delete_migrations.py
View file @
ac52ba3c
File moved
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