collapsing all of dr_botzo one directory
This commit is contained in:
49
storycraft/migrations/0001_initial.py
Normal file
49
storycraft/migrations/0001_initial.py
Normal file
@@ -0,0 +1,49 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='StorycraftGame',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('game_length', models.PositiveSmallIntegerField()),
|
||||
('line_length', models.PositiveSmallIntegerField()),
|
||||
('lines_per_turn', models.PositiveSmallIntegerField()),
|
||||
('status', models.CharField(max_length=16, choices=[('OPEN', 'OPEN'), ('IN PROGRESS', 'IN PROGRESS'), ('COMPLETED', 'COMPLETED')])),
|
||||
('owner_nick', models.CharField(max_length=64)),
|
||||
('owner_nickmask', models.CharField(max_length=200)),
|
||||
('start_time', models.DateTimeField()),
|
||||
('end_time', models.DateTimeField()),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='StorycraftLine',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('line', models.TextField(default='')),
|
||||
('time', models.DateTimeField(auto_now_add=True)),
|
||||
('game', models.ForeignKey(to='storycraft.StorycraftGame')),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='StorycraftPlayer',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('nick', models.CharField(max_length=64)),
|
||||
('nickmask', models.CharField(max_length=200)),
|
||||
('game', models.ForeignKey(to='storycraft.StorycraftGame')),
|
||||
],
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='storycraftline',
|
||||
name='player',
|
||||
field=models.ForeignKey(to='storycraft.StorycraftPlayer'),
|
||||
),
|
||||
]
|
||||
23
storycraft/migrations/0002_auto_20150619_2034.py
Normal file
23
storycraft/migrations/0002_auto_20150619_2034.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('storycraft', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='storycraftgame',
|
||||
name='end_time',
|
||||
field=models.DateTimeField(null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='storycraftgame',
|
||||
name='start_time',
|
||||
field=models.DateTimeField(null=True),
|
||||
),
|
||||
]
|
||||
18
storycraft/migrations/0003_auto_20150619_2038.py
Normal file
18
storycraft/migrations/0003_auto_20150619_2038.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('storycraft', '0002_auto_20150619_2034'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='storycraftgame',
|
||||
name='status',
|
||||
field=models.CharField(default='OPEN', max_length=16, choices=[('OPEN', 'OPEN'), ('IN PROGRESS', 'IN PROGRESS'), ('COMPLETED', 'COMPLETED')]),
|
||||
),
|
||||
]
|
||||
28
storycraft/migrations/0004_auto_20150619_2040.py
Normal file
28
storycraft/migrations/0004_auto_20150619_2040.py
Normal file
@@ -0,0 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('storycraft', '0003_auto_20150619_2038'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='storycraftline',
|
||||
name='game',
|
||||
field=models.ForeignKey(related_name='lines', to='storycraft.StorycraftGame'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='storycraftline',
|
||||
name='player',
|
||||
field=models.ForeignKey(related_name='lines', to='storycraft.StorycraftPlayer'),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='storycraftplayer',
|
||||
name='game',
|
||||
field=models.ForeignKey(related_name='players', to='storycraft.StorycraftGame'),
|
||||
),
|
||||
]
|
||||
21
storycraft/migrations/0005_storycraftgame_create_time.py
Normal file
21
storycraft/migrations/0005_storycraftgame_create_time.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from django.db import models, migrations
|
||||
import datetime
|
||||
from django.utils.timezone import utc
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('storycraft', '0004_auto_20150619_2040'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='storycraftgame',
|
||||
name='create_time',
|
||||
field=models.DateTimeField(default=datetime.datetime(2015, 6, 20, 1, 51, 18, 778824, tzinfo=utc), auto_now_add=True),
|
||||
preserve_default=False,
|
||||
),
|
||||
]
|
||||
0
storycraft/migrations/__init__.py
Normal file
0
storycraft/migrations/__init__.py
Normal file
Reference in New Issue
Block a user