<commit_before># -*- coding: 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 'Project'
        db.create_table(u'projects_project', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['members.User'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('flp', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flp', to=orm['members.User'])),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('targets', self.gf('django.db.models.fields.TextField')()),
            ('tasks', self.gf('django.db.models.fields.TextField')()),
            ('target_group', self.gf('django.db.models.fields.TextField')()),
            ('schedule', self.gf('django.db.models.fields.TextField')()),
            ('resources', self.gf('django.db.models.fields.TextField')()),
            ('finance_description', self.gf('django.db.models.fields.TextField')()),
            ('partners', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal(u'projects', ['Project'])

        # Adding M2M table for field team on 'Project'
        m2m_table_name = db.shorten_name(u'projects_project_team')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('project', models.ForeignKey(orm[u'projects.project'], null=False)),
            ('member', models.ForeignKey(orm[u'members.user'], null=False))
        ))
        db.create_unique(m2m_table_name, ['project_id', 'user_id'])

        # Adding M2M table for field files on 'Project'
        m2m_table_name = db.shorten_name(u'projects_project_files')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('project', models.ForeignKey(orm[u'projects.project'], null=False)),
            ('attachment', models.ForeignKey(orm[u'attachments.attachment'], null=False))
        ))
        db.create_unique(m2m_table_name, ['project_id', 'attachment_id'])


    def backwards(self, orm):
        # Deleting model 'Project'
        db.delete_table(u'projects_project')

        # Removing M2M table for field team on 'Project'
        db.delete_table(db.shorten_name(u'projects_project_team'))

        # Removing M2M table for field files on 'Project'
        db.delete_table(db.shorten_name(u'projects_project_files'))


    models = {
        u'attachments.attachment': {
            'Meta': {'object_name': 'Attachment'},
            'file_name': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        u'auth.group': {
            'Meta': {'object_name': 'Group'},
            u'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': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        u'auth.permission': {<commit_msg>Rename member to user in a m2m table<commit_after># -*- coding: 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 'Project'
        db.create_table(u'projects_project', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['members.User'])),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('flp', self.gf('django.db.models.fields.related.ForeignKey')(related_name='flp', to=orm['members.User'])),
            ('description', self.gf('django.db.models.fields.TextField')()),
            ('targets', self.gf('django.db.models.fields.TextField')()),
            ('tasks', self.gf('django.db.models.fields.TextField')()),
            ('target_group', self.gf('django.db.models.fields.TextField')()),
            ('schedule', self.gf('django.db.models.fields.TextField')()),
            ('resources', self.gf('django.db.models.fields.TextField')()),
            ('finance_description', self.gf('django.db.models.fields.TextField')()),
            ('partners', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal(u'projects', ['Project'])

        # Adding M2M table for field team on 'Project'
        m2m_table_name = db.shorten_name(u'projects_project_team')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('project', models.ForeignKey(orm[u'projects.project'], null=False)),
            ('user', models.ForeignKey(orm[u'members.user'], null=False))
        ))
        db.create_unique(m2m_table_name, ['project_id', 'user_id'])

        # Adding M2M table for field files on 'Project'
        m2m_table_name = db.shorten_name(u'projects_project_files')
        db.create_table(m2m_table_name, (
            ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
            ('project', models.ForeignKey(orm[u'projects.project'], null=False)),
            ('attachment', models.ForeignKey(orm[u'attachments.attachment'], null=False))
        ))
        db.create_unique(m2m_table_name, ['project_id', 'attachment_id'])

    def backwards(self, orm):
        # Deleting model 'Project'
        db.delete_table(u'projects_project')

        # Removing M2M table for field team on 'Project'
        db.delete_table(db.shorten_name(u'projects_project_team'))

        # Removing M2M table for field files on 'Project'
        db.delete_table(db.shorten_name(u'projects_project_files'))


    models = {
        u'attachments.attachment': {
            'Meta': {'object_name': 'Attachment'},
            'file_name': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
        },
        u'auth.group': {
            'Meta': {'object_name': 'Group'},
            u'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': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        u'auth.permission': {
{'fraction_non_alphanumeric': 0.17871371656232213, 'fraction_numerical': 0.005833807626636312, 'mean_word_length': 3.2014345487148836, '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': '7302158', 'n_tokens_mistral': 2198, 'n_tokens_neox': 2140, 'n_words': 331}