Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
go
Commits
6ad76dd9
Commit
6ad76dd9
authored
Mar 19, 2016
by
David Haynes
🙆
Browse files
Prevent /migrations from being in version control
- now hidden
parent
480da1b8
Changes
6
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
6ad76dd9
...
...
@@ -6,3 +6,4 @@
/go/settings/secret.py
/go/static/admin
/go/media
/go/go/migrations
go/go/migrations/0001_initial.py
deleted
100644 → 0
View file @
480da1b8
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
import
django.utils.timezone
from
django.conf
import
settings
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'RegisteredUser'
,
fields
=
[
(
'username'
,
models
.
CharField
(
max_length
=
30
,
serialize
=
False
,
primary_key
=
True
)),
(
'full_name'
,
models
.
CharField
(
max_length
=
100
)),
(
'description'
,
models
.
TextField
(
blank
=
True
)),
(
'approved'
,
models
.
BooleanField
()),
],
options
=
{
},
bases
=
(
models
.
Model
,),
),
migrations
.
CreateModel
(
name
=
'URL'
,
fields
=
[
(
'date_created'
,
models
.
DateTimeField
(
default
=
django
.
utils
.
timezone
.
now
)),
(
'target'
,
models
.
URLField
(
max_length
=
1000
)),
(
'short'
,
models
.
CharField
(
max_length
=
20
,
serialize
=
False
,
primary_key
=
True
)),
(
'clicks'
,
models
.
IntegerField
(
default
=
0
)),
(
'expires'
,
models
.
DateTimeField
(
null
=
True
,
blank
=
True
)),
(
'owner'
,
models
.
ForeignKey
(
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
'ordering'
:
[
'short'
],
},
bases
=
(
models
.
Model
,),
),
]
go/go/migrations/0002_auto_20140911_1336.py
deleted
100644 → 0
View file @
480da1b8
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'go'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'url'
,
name
=
'qrclicks'
,
field
=
models
.
IntegerField
(
default
=
0
),
preserve_default
=
True
,
),
migrations
.
AddField
(
model_name
=
'url'
,
name
=
'socialclicks'
,
field
=
models
.
IntegerField
(
default
=
0
),
preserve_default
=
True
,
),
]
go/go/migrations/0003_auto_20160107_1418.py
deleted
100644 → 0
View file @
480da1b8
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'go'
,
'0002_auto_20140911_1336'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'url'
,
name
=
'short'
,
field
=
models
.
SlugField
(
max_length
=
20
,
serialize
=
False
,
primary_key
=
True
),
),
]
go/go/migrations/0004_registereduser_organization.py
deleted
100644 → 0
View file @
480da1b8
# -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-03-15 21:23
from
__future__
import
unicode_literals
import
datetime
from
django.db
import
migrations
,
models
from
django.utils.timezone
import
utc
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'go'
,
'0003_auto_20160107_1418'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'registereduser'
,
name
=
'organization'
,
field
=
models
.
CharField
(
default
=
datetime
.
datetime
(
2016
,
3
,
15
,
21
,
23
,
13
,
628051
,
tzinfo
=
utc
),
max_length
=
100
),
preserve_default
=
False
,
),
]
go/go/migrations/__init__.py
deleted
100644 → 0
View file @
480da1b8
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