Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
b1059504
Commit
b1059504
authored
Jan 12, 2018
by
Guilhem Saurel
Browse files
manual flush migration
parent
772e934d
Changes
2
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0001_initial.py
View file @
b1059504
# Generated by Django 2.0.1 on 2018-01-11 15:46
import
django.db.models.deletion
from
django.db
import
migrations
,
models
# Generated by Django 2.0.1 on 2018-01-12 10:31
import
autoslug.fields
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
django.db.models.deletion
import
ndh.models
...
...
@@ -12,9 +12,25 @@ class Migration(migrations.Migration):
initial
=
True
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Article'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
200
,
unique
=
True
)),
(
'slug'
,
autoslug
.
fields
.
AutoSlugField
(
editable
=
False
,
populate_from
=
'name'
,
unique
=
True
)),
(
'year'
,
models
.
PositiveSmallIntegerField
()),
(
'url'
,
models
.
URLField
()),
(
'pdf'
,
models
.
URLField
()),
(
'authors'
,
models
.
ManyToManyField
(
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
'abstract'
:
False
,
},
),
migrations
.
CreateModel
(
name
=
'Branch'
,
fields
=
[
...
...
@@ -88,6 +104,7 @@ class Migration(migrations.Migration):
(
'slug'
,
autoslug
.
fields
.
AutoSlugField
(
editable
=
False
,
populate_from
=
'name'
,
unique
=
True
)),
(
'private'
,
models
.
BooleanField
(
default
=
False
)),
(
'homepage'
,
models
.
URLField
(
blank
=
True
,
null
=
True
)),
(
'articles'
,
models
.
ManyToManyField
(
to
=
'rainboard.Article'
)),
(
'license'
,
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'rainboard.License'
)),
(
'main_namespace'
,
models
.
ForeignKey
(
blank
=
True
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
SET_NULL
,
to
=
'rainboard.Namespace'
)),
],
...
...
rainboard/migrations/0003_articles.py
deleted
100644 → 0
View file @
772e934d
# Generated by Django 2.0.1 on 2018-01-12 10:07
from
django.conf
import
settings
from
django.db
import
migrations
,
models
import
autoslug.fields
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
migrations
.
swappable_dependency
(
settings
.
AUTH_USER_MODEL
),
(
'rainboard'
,
'0002_forges'
),
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Article'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
max_length
=
200
,
unique
=
True
)),
(
'slug'
,
autoslug
.
fields
.
AutoSlugField
(
editable
=
False
,
populate_from
=
'name'
,
unique
=
True
)),
(
'year'
,
models
.
PositiveSmallIntegerField
()),
(
'url'
,
models
.
URLField
()),
(
'pdf'
,
models
.
URLField
()),
(
'authors'
,
models
.
ManyToManyField
(
to
=
settings
.
AUTH_USER_MODEL
)),
],
options
=
{
'abstract'
:
False
,
},
),
migrations
.
AddField
(
model_name
=
'project'
,
name
=
'articles'
,
field
=
models
.
ManyToManyField
(
to
=
'rainboard.Article'
),
),
]
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