|
@@ -37,7 +37,7 @@ class Migration(migrations.Migration):
|
|
|
('poster_ip', models.GenericIPAddressField()),
|
|
|
('original', models.TextField()),
|
|
|
('parsed', models.TextField()),
|
|
|
- ('checksum', models.CharField(max_length=64)),
|
|
|
+ ('checksum', models.CharField(max_length=64, default='-')),
|
|
|
('has_attachments', models.BooleanField(default=False)),
|
|
|
('pickled_attachments', models.TextField(null=True, blank=True)),
|
|
|
('posted_on', models.DateTimeField()),
|
|
@@ -94,6 +94,25 @@ class Migration(migrations.Migration):
|
|
|
},
|
|
|
bases=(models.Model,),
|
|
|
),
|
|
|
+ migrations.CreateModel(
|
|
|
+ name='Event',
|
|
|
+ fields=[
|
|
|
+ ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
|
+ ('author_name', models.CharField(max_length=255)),
|
|
|
+ ('author_slug', models.CharField(max_length=255)),
|
|
|
+ ('icon', models.CharField(max_length=255)),
|
|
|
+ ('occured_on', models.DateTimeField(default=django.utils.timezone.now, db_index=True)),
|
|
|
+ ('message', models.CharField(max_length=255)),
|
|
|
+ ('checksum', models.CharField(max_length=64, default='-')),
|
|
|
+ ('is_hidden', models.BooleanField(default=False)),
|
|
|
+ ('author', models.ForeignKey(on_delete=django.db.models.deletion.SET_NULL, blank=True, to=settings.AUTH_USER_MODEL, null=True)),
|
|
|
+ ('forum', models.ForeignKey(to='misago_forums.Forum')),
|
|
|
+ ('thread', models.ForeignKey(to='misago_threads.Thread')),
|
|
|
+ ],
|
|
|
+ options={
|
|
|
+ },
|
|
|
+ bases=(models.Model,),
|
|
|
+ ),
|
|
|
CreatePartialIndex(
|
|
|
field='Thread.has_reported_posts',
|
|
|
index_name='misago_thread_has_reported_posts_partial',
|
|
@@ -154,10 +173,10 @@ class Migration(migrations.Migration):
|
|
|
migrations.AlterIndexTogether(
|
|
|
name='thread',
|
|
|
index_together=set([
|
|
|
- ('forum', 'weight'),
|
|
|
('forum', 'weight', 'id'),
|
|
|
('forum', 'weight', 'last_post'),
|
|
|
- ('forum', 'weight', 'replies')
|
|
|
+ ('forum', 'weight', 'replies'),
|
|
|
+ ('forum', 'weight')
|
|
|
]),
|
|
|
),
|
|
|
]
|