<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 model 'ThirdPartyAccount'
        db.create_table('accountlinker_thirdpartyaccount', (
            ('username', self.gf('django.db.models.fields.CharField')(max_length=512, db_index=True)),
            ('oauth_refresh_token', self.gf('django.db.models.fields.CharField')(max_length=256, db_index=True)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('oauth_access_token', self.gf('django.db.models.fields.CharField')(max_length=256, db_index=True)),
        ))
        db.send_create_signal('accountlinker', ['ThirdPartyAccount'])

        # Adding unique constraint on 'ThirdPartyAccount', fields ['type', 'oauth_access_token']
        db.create_unique('accountlinker_thirdpartyaccount', ['type', 'oauth_access_token'])
    
    
    def backwards(self, orm):
        
        # Deleting model 'ThirdPartyAccount'
        db.delete_table('accountlinker_thirdpartyaccount')

        # Removing unique constraint on 'ThirdPartyAccount', fields ['type', 'oauth_access_token']
        db.delete_unique('accountlinker_thirdpartyaccount', ['type', 'oauth_access_token'])
    
    
    models = {
        'accountlinker.thirdpartyaccount': {<commit_msg>Made unique key name smaller so MySQL won't throw a fit. Nice.<commit_after># encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

# mysql is barfing on the longer index name

key_name = 'accountlinker_tpa'
class Migration(SchemaMigration):
    
    def forwards(self, orm):
        
        # Adding model 'ThirdPartyAccount'
        db.create_table('accountlinker_thirdpartyaccount', (
            ('username', self.gf('django.db.models.fields.CharField')(max_length=512, db_index=True)),
            ('oauth_refresh_token', self.gf('django.db.models.fields.CharField')(max_length=256, db_index=True)),
            ('type', self.gf('django.db.models.fields.CharField')(max_length=10)),
            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('oauth_access_token', self.gf('django.db.models.fields.CharField')(max_length=256, db_index=True)),
        ))
        db.send_create_signal('accountlinker', ['ThirdPartyAccount'])

        # Adding unique constraint on 'ThirdPartyAccount', fields ['type', 'oauth_access_token']
        db.create_unique(key_name, ['type', 'oauth_access_token'])
    
    
    def backwards(self, orm):
        
        # Deleting model 'ThirdPartyAccount'
        db.delete_table('accountlinker_thirdpartyaccount')

        # Removing unique constraint on 'ThirdPartyAccount', fields ['type', 'oauth_access_token']
        db.delete_unique(key_name, ['type', 'oauth_access_token'])
    
    
    models = {
        'accountlinker.thirdpartyaccount': {
{'fraction_non_alphanumeric': 0.12979066022544283, 'fraction_numerical': 0.008373590982286634, 'mean_word_length': 3.6427503736920777, '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': '7240112', 'n_tokens_mistral': 975, 'n_tokens_neox': 918, 'n_words': 165}