<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):
        
        # Adding field 'OpenGraphShare.retry_count'
        db.add_column('django_facebook_open_graph_share', 'retry_count', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True), keep_default=False)

        # Adding index on 'OpenGraphShare', fields ['created_at']
        db.create_index('django_facebook_open_graph_share', ['created_at'])



    def backwards(self, orm):
        
        # Removing index on 'OpenGraphShare', fields ['created_at']
        db.delete_index('django_facebook_open_graph_share', ['created_at'])

        # Deleting field 'OpenGraphShare.retry_count'
        db.delete_column('django_facebook_open_graph_share', 'retry_count')



    models = {
        'auth.group': {
            'Meta': {'object_name': 'Group'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 9, 19, 12, 40, 4, 55000)'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),<commit_msg>Updated migration script to capture null=True changes to many of the facebookprofile fields.<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):
        
        # Adding field 'OpenGraphShare.retry_count'
        db.add_column('django_facebook_open_graph_share', 'retry_count', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True), keep_default=False)

        db.alter_column('django_facebook_facebookprofile', 'about_me', self.gf('django.db.models.fields.TextField')(blank=True, null=True))
        db.alter_column('django_facebook_facebookprofile', 'access_token', self.gf('django.db.models.fields.TextField')(blank=True, null=True))
        db.alter_column('django_facebook_facebookprofile', 'facebook_name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True, null=True))
        db.alter_column('django_facebook_facebookprofile', 'facebook_profile_url', self.gf('django.db.models.fields.TextField')(blank=True, null=True))
        db.alter_column('django_facebook_facebookprofile', 'website_url', self.gf('django.db.models.fields.TextField')(blank=True, null=True))
        db.alter_column('django_facebook_facebookprofile', 'blog_url', self.gf('django.db.models.fields.TextField')(blank=True, null=True))
        db.alter_column('django_facebook_facebookprofile', 'raw_data', self.gf('django.db.models.fields.TextField')(blank=True, null=True))

        # Adding index on 'OpenGraphShare', fields ['created_at']
        db.create_index('django_facebook_open_graph_share', ['created_at'])



    def backwards(self, orm):
        
        # Removing index on 'OpenGraphShare', fields ['created_at']
        db.delete_index('django_facebook_open_graph_share', ['created_at'])

        db.alter_column('django_facebook_facebookprofile', 'about_me', self.gf('django.db.models.fields.TextField')(blank=True))
        db.alter_column('django_facebook_facebookprofile', 'access_token', self.gf('django.db.models.fields.TextField')(blank=True))
        db.alter_column('django_facebook_facebookprofile', 'facebook_name', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True))
        db.alter_column('django_facebook_facebookprofile', 'facebook_profile_url', self.gf('django.db.models.fields.TextField')(blank=True))
        db.alter_column('django_facebook_facebookprofile', 'website_url', self.gf('django.db.models.fields.TextField')(blank=True))
        db.alter_column('django_facebook_facebookprofile', 'blog_url', self.gf('django.db.models.fields.TextField')(blank=True))
        db.alter_column('django_facebook_facebookprofile', 'raw_data', self.gf('django.db.models.fields.TextField')(blank=True))

        # Deleting field 'OpenGraphShare.retry_count'
        db.delete_column('django_facebook_open_graph_share', 'retry_count')



    models = {
        'auth.group': {
            'Meta': {'object_name': 'Group'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 9, 19, 12, 40, 4, 55000)'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
{'fraction_non_alphanumeric': 0.17954960438222764, 'fraction_numerical': 0.009433962264150943, 'mean_word_length': 4.2880128720836685, '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': '4335646', 'n_tokens_mistral': 2061, 'n_tokens_neox': 1977, 'n_words': 310}