<commit_before>
from south.db import db
from django.db import models
from cms.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Adding field 'PublicPage.changed_by'
        db.add_column('cms_publicpage', 'changed_by', orm['cms.publicpage:changed_by'])
        
        # Adding field 'Page.changed_by'
        db.add_column('cms_page', 'changed_by', orm['cms.page:changed_by'])
        
        # Adding field 'PublicPage.created_by'
        db.add_column('cms_publicpage', 'created_by', orm['cms.publicpage:created_by'])
        
        # Adding field 'Page.created_by'
        db.add_column('cms_page', 'created_by', orm['cms.page:created_by'])
        
       
    
    
    def backwards(self, orm):
        
        # Deleting field 'PublicPage.changed_by'
        db.delete_column('cms_publicpage', 'changed_by')
        
        # Deleting field 'Page.changed_by'
        db.delete_column('cms_page', 'changed_by')
        
        # Deleting field 'PublicPage.created_by'
        db.delete_column('cms_publicpage', 'created_by')
        
        # Deleting field 'Page.created_by'
        db.delete_column('cms_page', 'created_by')
        
       
    
    models = {
        'sites.site': {
            'Meta': {'db_table': "'django_site'"},
            'domain': ('models.CharField', [], {'max_length': '100'}),
            'id': ('models.AutoField', [], {'primary_key': 'True', 'blank': 'True'}),
            'name': ('models.CharField', [], {'max_length': '50'})<commit_msg>Add default values to field for sqlite usage<commit_after>
from south.db import db
from django.db import models
from cms.models import *

class Migration:
    
    def forwards(self, orm):
        
        # Adding field 'PublicPage.changed_by'
        field = orm['cms.publicpage:changed_by']
        field.default = '' #Surely this can't be THE way to do this?
        db.add_column('cms_publicpage', 'changed_by', field)
        
        # Adding field 'Page.changed_by'
        db.add_column('cms_page', 'changed_by', orm['cms.page:changed_by'])
        
        # Adding field 'PublicPage.created_by'
        field = orm['cms.publicpage:created_by']
        field.default = ''
        db.add_column('cms_publicpage', 'created_by', orm['cms.publicpage:created_by'])
        
        # Adding field 'Page.created_by'
        db.add_column('cms_page', 'created_by', orm['cms.page:created_by'])
        
       
    
    
    def backwards(self, orm):
        
        # Deleting field 'PublicPage.changed_by'
        db.delete_column('cms_publicpage', 'changed_by')
        
        # Deleting field 'Page.changed_by'
        db.delete_column('cms_page', 'changed_by')
        
        # Deleting field 'PublicPage.created_by'
        db.delete_column('cms_publicpage', 'created_by')
        
        # Deleting field 'Page.created_by'
        db.delete_column('cms_page', 'created_by')
        
       
    
    models = {
        'sites.site': {
            'Meta': {'db_table': "'django_site'"},
            'domain': ('models.CharField', [], {'max_length': '100'}),
            'id': ('models.AutoField', [], {'primary_key': 'True', 'blank': 'True'}),
            'name': ('models.CharField', [], {'max_length': '50'})
{'fraction_non_alphanumeric': 0.1443076923076923, 'fraction_numerical': 0.003076923076923077, 'mean_word_length': 2.393528183716075, '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': '2544224', 'n_tokens_mistral': 1060, 'n_tokens_neox': 1016, 'n_words': 187}