<commit_before># encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        # Changing field 'Category.hash_key'
        db.delete_column('base_category', 'hash_key')
        db.add_column('base_category', 'hash_key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=32))
        db.add_column('base_category', 'id', self.gf('django.db.models.fields.AutoField')(primary_key=True, default=0))

        # Changing field 'Article.hash_key'
        db.delete_column('base_article', 'hash_key')
        db.add_column('base_article', 'hash_key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=32))
        db.add_column('base_article', 'id', self.gf('django.db.models.fields.AutoField')(primary_key=True, default=0))


    def backwards(self, orm):

        # Deleting field 'Category.id'
        db.delete_column('base_category', 'id')

        # Changing field 'Category.hash_key'
        db.alter_column('base_category', 'hash_key', self.gf('django.db.models.fields.CharField')(max_length=32, primary_key=True))

        # Deleting field 'Article.id'
        db.delete_column('base_article', 'id')<commit_msg>fixed migration - default value should not be set for pk<commit_after># encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        # Changing field 'Category.hash_key'
        db.delete_column('base_category', 'hash_key')
        db.add_column('base_category', 'hash_key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=32))
        db.add_column('base_category', 'id', self.gf('django.db.models.fields.AutoField')(primary_key=True))

        # Changing field 'Article.hash_key'
        db.delete_column('base_article', 'hash_key')
        db.add_column('base_article', 'hash_key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=32))
        db.add_column('base_article', 'id', self.gf('django.db.models.fields.AutoField')(primary_key=True))


    def backwards(self, orm):

        # Deleting field 'Category.id'
        db.delete_column('base_category', 'id')

        # Changing field 'Category.hash_key'
        db.alter_column('base_category', 'hash_key', self.gf('django.db.models.fields.CharField')(max_length=32, primary_key=True))

        # Deleting field 'Article.id'
        db.delete_column('base_article', 'id')
{'fraction_non_alphanumeric': 0.1432985708767864, 'fraction_numerical': 0.006952491309385863, 'mean_word_length': 4.221774193548387, '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': '7326431', 'n_tokens_mistral': 858, 'n_tokens_neox': 817, 'n_words': 142}