mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
forgot migration file.
This commit is contained in:
32
comic/migrations/0003_comicbook_comicpage.py
Normal file
32
comic/migrations/0003_comicbook_comicpage.py
Normal file
@@ -0,0 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('comic', '0002_auto_20150616_1613'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='ComicBook',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('file_name', models.CharField(unique=True, max_length=100)),
|
||||
('last_read_page', models.IntegerField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ComicPage',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('index', models.IntegerField()),
|
||||
('page_file_name', models.CharField(max_length=100)),
|
||||
('content_type', models.CharField(max_length=30)),
|
||||
('Comic', models.ForeignKey(to='comic.ComicBook')),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user