Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
3aae620c
Commit
3aae620c
authored
Aug 08, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dependent migrations
parent
9098ec8e
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
97 additions
and
3 deletions
+97
-3
.gitignore
.gitignore
+0
-3
0001_initial.py
esi/scraper/migrations/0001_initial.py
+44
-0
0002_auto_20170615_1346.py
esi/scraper/migrations/0002_auto_20170615_1346.py
+32
-0
0003_auto_20170616_0634.py
esi/scraper/migrations/0003_auto_20170616_0634.py
+21
-0
No files found.
.gitignore
View file @
3aae620c
...
@@ -101,9 +101,6 @@ ENV/
...
@@ -101,9 +101,6 @@ ENV/
dbs/
dbs/
esi/db.sqlite3
esi/db.sqlite3
esi/dbs/
esi/dbs/
esi/scraper/migrations/0001_initial.py
esi/scraper/migrations/0002_auto_20170615_1346.py
esi/scraper/migrations/0003_auto_20170616_0634.py
esi/twistd.pid
esi/twistd.pid
esi/celerybeat.*
esi/celerybeat.*
esi/webapp/migrations/
esi/webapp/migrations/
...
...
esi/scraper/migrations/0001_initial.py
0 → 100755
View file @
3aae620c
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-15 11:08
from
__future__
import
unicode_literals
from
django.db
import
migrations
,
models
import
django.db.models.deletion
class
Migration
(
migrations
.
Migration
):
initial
=
True
dependencies
=
[
]
operations
=
[
migrations
.
CreateModel
(
name
=
'Job'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
default
=
None
,
max_length
=
50
,
null
=
True
)),
(
'job_id'
,
models
.
CharField
(
default
=
None
,
max_length
=
50
,
null
=
True
)),
(
'create_time'
,
models
.
DateTimeField
(
default
=
None
,
null
=
True
)),
(
'start_time'
,
models
.
DateTimeField
()),
(
'end_time'
,
models
.
DateTimeField
()),
(
'status'
,
models
.
CharField
(
choices
=
[(
'DEL'
,
'delete'
),
(
'FIN'
,
'finished'
),
(
'RUN'
,
'running'
),
(
'PEN'
,
'pending'
)],
default
=
'PEN'
,
max_length
=
3
)),
],
),
migrations
.
CreateModel
(
name
=
'Spider'
,
fields
=
[
(
'id'
,
models
.
AutoField
(
auto_created
=
True
,
primary_key
=
True
,
serialize
=
False
,
verbose_name
=
'ID'
)),
(
'name'
,
models
.
CharField
(
default
=
None
,
max_length
=
50
,
null
=
True
)),
(
'sp_name'
,
models
.
CharField
(
default
=
None
,
max_length
=
20
)),
(
'media'
,
models
.
IntegerField
(
default
=
None
,
null
=
True
)),
],
),
migrations
.
AddField
(
model_name
=
'job'
,
name
=
'spider'
,
field
=
models
.
ForeignKey
(
default
=
None
,
null
=
True
,
on_delete
=
django
.
db
.
models
.
deletion
.
CASCADE
,
to
=
'scraper.Spider'
),
),
]
#
\ No newline at end of file
esi/scraper/migrations/0002_auto_20170615_1346.py
0 → 100755
View file @
3aae620c
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-15 13:46
from
__future__
import
unicode_literals
import
datetime
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'scraper'
,
'0001_initial'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'job'
,
name
=
'create_time'
,
field
=
models
.
DateTimeField
(
default
=
datetime
.
datetime
.
now
),
),
migrations
.
AlterField
(
model_name
=
'job'
,
name
=
'end_time'
,
field
=
models
.
DateTimeField
(
default
=
None
,
null
=
True
),
),
migrations
.
AlterField
(
model_name
=
'job'
,
name
=
'start_time'
,
field
=
models
.
DateTimeField
(
default
=
None
,
null
=
True
),
),
]
#
\ No newline at end of file
esi/scraper/migrations/0003_auto_20170616_0634.py
0 → 100755
View file @
3aae620c
# -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-06-16 06:34
from
__future__
import
unicode_literals
from
django.db
import
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'scraper'
,
'0002_auto_20170615_1346'
),
]
operations
=
[
migrations
.
RenameField
(
model_name
=
'job'
,
old_name
=
'job_id'
,
new_name
=
'job_uuid'
,
),
]
#
\ No newline at end of file
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