<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):
        
        # Deleting field 'Project.current_status_detail'
        db.delete_column('rsr_project', 'current_status_detail')

        # Deleting field 'Project.project_plan_detail'
        db.delete_column('rsr_project', 'project_plan_detail')

        # Adding field 'Project.current_status'
        db.add_column('rsr_project', 'current_status', self.gf('akvo.rsr.fields.ProjectLimitedTextField')(default='', blank=True), keep_default=False)

        # Adding field 'Project.project_plan'
        db.add_column('rsr_project', 'project_plan', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)

        # Changing field 'Project.project_plan_summary'
        db.alter_column('rsr_project', 'project_plan_summary', self.gf('akvo.rsr.fields.ProjectLimitedTextField')())

        # Changing field 'Project.context'
        db.alter_column('rsr_project', 'context', self.gf('akvo.rsr.fields.ProjectLimitedTextField')())

        # Changing field 'Project.goals_overview'
        db.alter_column('rsr_project', 'goals_overview', self.gf('akvo.rsr.fields.ProjectLimitedTextField')())

        # Adding unique constraint on 'BudgetItemLabel', fields ['label']
        db.create_unique('rsr_budgetitemlabel', ['label'])


    def backwards(self, orm):
        
        # Removing unique constraint on 'BudgetItemLabel', fields ['label']
        db.delete_unique('rsr_budgetitemlabel', ['label'])

        # Adding field 'Project.current_status_detail'
        db.add_column('rsr_project', 'current_status_detail', self.gf('django.db.models.fields.TextField')(default='', max_length=600, blank=True), keep_default=False)

        # Adding field 'Project.project_plan_detail'
        db.add_column('rsr_project', 'project_plan_detail', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)

        # Deleting field 'Project.current_status'
        db.delete_column('rsr_project', 'current_status')

        # Deleting field 'Project.project_plan'
        db.delete_column('rsr_project', 'project_plan')
<commit_msg>Replaced south delete_column migrations with rename_column to preserve data.<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):
        
        # Renaming field 'Project.current_status_detail'
        db.rename_column('rsr_project', 'current_status_detail', 'current_detail')

        # Renaming field 'Project.project_plan_detail'
        db.rename_column('rsr_project', 'project_plan_detail', 'project_plan')

        # Adding field 'Project.current_status'
        db.add_column('rsr_project', 'current_status', self.gf('akvo.rsr.fields.ProjectLimitedTextField')(default='', blank=True), keep_default=False)

        # Adding field 'Project.project_plan'
        db.add_column('rsr_project', 'project_plan', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)

        # Changing field 'Project.project_plan_summary'
        db.alter_column('rsr_project', 'project_plan_summary', self.gf('akvo.rsr.fields.ProjectLimitedTextField')())

        # Changing field 'Project.context'
        db.alter_column('rsr_project', 'context', self.gf('akvo.rsr.fields.ProjectLimitedTextField')())

        # Changing field 'Project.goals_overview'
        db.alter_column('rsr_project', 'goals_overview', self.gf('akvo.rsr.fields.ProjectLimitedTextField')())

        # Adding unique constraint on 'BudgetItemLabel', fields ['label']
        db.create_unique('rsr_budgetitemlabel', ['label'])


    def backwards(self, orm):
        
        # Removing unique constraint on 'BudgetItemLabel', fields ['label']
        db.delete_unique('rsr_budgetitemlabel', ['label'])

        # Adding field 'Project.current_status_detail'
        db.add_column('rsr_project', 'current_status_detail', self.gf('django.db.models.fields.TextField')(default='', max_length=600, blank=True), keep_default=False)

        # Adding field 'Project.project_plan_detail'
        db.add_column('rsr_project', 'project_plan_detail', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False)

        # Renaming field 'Project.current_status'
        db.rename_column('rsr_project', 'current_status', 'current_status_detail')

        # Renaming field 'Project.project_plan'
        db.rename_column('rsr_project', 'project_plan', 'project_plan_detail')

{'fraction_non_alphanumeric': 0.12877986889405793, 'fraction_numerical': 0.002114611968703743, 'mean_word_length': 4.350678733031674, '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': '4735908', 'n_tokens_mistral': 1460, 'n_tokens_neox': 1396, 'n_words': 240}