<commit_before># -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Entry'
        db.create_table(u'zinnia_entry', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255)),
            ('status', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('start_publication', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('end_publication', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('creation_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('last_update', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('content', self.gf('django.db.models.fields.TextField')(blank=True)),
            ('comment_enabled', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('pingback_enabled', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('trackback_enabled', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('comment_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('pingback_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('trackback_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('excerpt', self.gf('django.db.models.fields.TextField')(blank=True)),
            ('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
            ('featured', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('tags', self.gf('tagging.fields.TagField')()),
            ('login_required', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('password', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
            ('content_template', self.gf('django.db.models.fields.CharField')(default=u'zinnia/_entry_detail.html', max_length=250)),
            ('detail_template', self.gf('django.db.models.fields.CharField')(default=u'entry_detail.html', max_length=250)),
        ))
        db.send_create_signal(u'zinnia', ['Entry'])

        # Adding index on 'Entry', fields ['slug', 'creation_date']
        db.create_index(u'zinnia_entry', ['slug', 'creation_date'])

        # Adding M2M table for field sites on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_sites')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('site', models.ForeignKey(orm[u'sites.site'], null=False))
        ))
        db.create_unique(m2m_table_name, ['entry_id', 'site_id'])

        # Adding M2M table for field related on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_related')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('from_entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('to_entry', models.ForeignKey(orm[u'zinnia.entry'], null=False))
        ))
        db.create_unique(m2m_table_name, ['from_entry_id', 'to_entry_id'])

        # Adding M2M table for field authors on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_authors')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('author', models.ForeignKey(orm['zinnia.author'], null=False))
        ))
        db.create_unique(m2m_table_name, ['entry_id', 'author_id'])

        # Adding M2M table for field categories on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_categories')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('category', models.ForeignKey(orm['zinnia.category'], null=False))
        ))
        db.create_unique(m2m_table_name, ['entry_id', 'category_id'])

        # Adding model 'Category'
        db.create_table(u'zinnia_category', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),<commit_msg>Fix Zinnia initial migration<commit_after># -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Entry'
        db.create_table(u'zinnia_entry', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('slug', self.gf('django.db.models.fields.SlugField')(max_length=255)),
            ('status', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('start_publication', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('end_publication', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True)),
            ('creation_date', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('last_update', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
            ('content', self.gf('django.db.models.fields.TextField')(blank=True)),
            ('comment_enabled', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('pingback_enabled', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('trackback_enabled', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('comment_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('pingback_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('trackback_count', self.gf('django.db.models.fields.IntegerField')(default=0)),
            ('excerpt', self.gf('django.db.models.fields.TextField')(blank=True)),
            ('image', self.gf('django.db.models.fields.files.ImageField')(max_length=100, blank=True)),
            ('featured', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('tags', self.gf('tagging.fields.TagField')()),
            ('login_required', self.gf('django.db.models.fields.BooleanField')(default=False)),
            ('password', self.gf('django.db.models.fields.CharField')(max_length=50, blank=True)),
            ('content_template', self.gf('django.db.models.fields.CharField')(default=u'zinnia/_entry_detail.html', max_length=250)),
            ('detail_template', self.gf('django.db.models.fields.CharField')(default=u'entry_detail.html', max_length=250)),
        ))
        db.send_create_signal(u'zinnia', ['Entry'])

        # Adding index on 'Entry', fields ['slug', 'creation_date']
        db.create_index(u'zinnia_entry', ['slug', 'creation_date'])

        # Adding M2M table for field sites on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_sites')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('site', models.ForeignKey(orm[u'sites.site'], null=False))
        ))
        db.create_unique(m2m_table_name, ['entry_id', 'site_id'])

        # Adding M2M table for field related on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_related')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('from_entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('to_entry', models.ForeignKey(orm[u'zinnia.entry'], null=False))
        ))
        db.create_unique(m2m_table_name, ['from_entry_id', 'to_entry_id'])

        # Adding M2M table for field authors on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_authors')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('author', models.ForeignKey(orm['auth.user'], null=False))
        ))
        db.create_unique(m2m_table_name, ['entry_id', 'author_id'])

        # Adding M2M table for field categories on 'Entry'
        m2m_table_name = db.shorten_name(u'zinnia_entry_categories')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('entry', models.ForeignKey(orm[u'zinnia.entry'], null=False)),
            ('category', models.ForeignKey(orm['zinnia.category'], null=False))
        ))
        db.create_unique(m2m_table_name, ['entry_id', 'category_id'])

        # Adding model 'Category'
        db.create_table(u'zinnia_category', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
{'fraction_non_alphanumeric': 0.16872551973485989, 'fraction_numerical': 0.008436275986742995, 'mean_word_length': 3.6101851851851854, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '812806', 'n_tokens_mistral': 3254, 'n_tokens_neox': 3139, 'n_words': 398}