<commit_before># -*- coding: utf-8 -*-

import os
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 'LandingUser'
        db.create_table(u'landing_landinguser', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('email_announcements', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('register_data', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('hash_codes', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('sent_emails', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('data', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=254)),
            ('date_joined', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
        ))
        db.send_create_signal(u'landing', ['LandingUser'])

        try:
            os.system('./manage.py move_landing_users_to_dedicated_table')

        except:
            pass

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


    models = {
        u'landing.landingcontent': {
            'Meta': {'object_name': 'LandingContent'},
            'content_en': ('django.db.models.fields.TextField', [], {}),
            'content_fr': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'content_nt': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'})
        },
        u'landing.landinguser': {
            'Meta': {'object_name': 'LandingUser'},
            'data': ('jsonfield.fields.JSONField', [], {'default': '{}', 'blank': 'True'}),
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '254'}),
            'email_announcements': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),<commit_msg>Don't even try to run the manage command in a migration, this doesn't work. I finally handled this one manually, it was much easier. Hoping I will do things better next time.<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 'LandingUser'
        db.create_table(u'landing_landinguser', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('email_announcements', self.gf('django.db.models.fields.BooleanField')(default=True)),
            ('last_modified', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
            ('register_data', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('hash_codes', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('sent_emails', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('data', self.gf('jsonfield.fields.JSONField')(default={}, blank=True)),
            ('email', self.gf('django.db.models.fields.EmailField')(max_length=254)),
            ('date_joined', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
        ))
        db.send_create_signal(u'landing', ['LandingUser'])

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


    models = {
        u'landing.landingcontent': {
            'Meta': {'object_name': 'LandingContent'},
            'content_en': ('django.db.models.fields.TextField', [], {}),
            'content_fr': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'content_nt': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '128'})
        },
        u'landing.landinguser': {
            'Meta': {'object_name': 'LandingUser'},
            'data': ('jsonfield.fields.JSONField', [], {'default': '{}', 'blank': 'True'}),
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '254'}),
            'email_announcements': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
{'fraction_non_alphanumeric': 0.19459564541213065, 'fraction_numerical': 0.0042768273716951785, 'mean_word_length': 3.3381112984822936, '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': '5041132', 'n_tokens_mistral': 1597, 'n_tokens_neox': 1549, 'n_words': 253}