<commit_before># -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models, connection


class Migration(SchemaMigration):

    def forwards(self, orm):
        table_names = connection.introspection.table_names()
        if 'cmsplugin_googlemap' in table_names:
            db.rename_table('cmsplugin_googlemap', 'djangocms_googlemap_googlemap')
        elif 'googlemap_googlemap' in table_names:
            db.rename_table('googlemap_googlemap', 'djangocms_googlemap_googlemap')
        else:
            # Adding model 'GoogleMap'
            db.create_table(u'djangocms_googlemap_googlemap', (
                (u'cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
                ('title', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
                ('address', self.gf('django.db.models.fields.CharField')(max_length=150)),
                ('zipcode', self.gf('django.db.models.fields.CharField')(max_length=30)),
                ('city', self.gf('django.db.models.fields.CharField')(max_length=100)),
                ('content', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
                ('zoom', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=13)),
                ('lat', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=10, decimal_places=6, blank=True)),
                ('lng', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=10, decimal_places=6, blank=True)),
                ('route_planer_title', self.gf('django.db.models.fields.CharField')(default=u'Calculate your fastest way to here', max_length=150, null=True, blank=True)),
                ('route_planer', self.gf('django.db.models.fields.BooleanField')(default=False)),
                ('width', self.gf('django.db.models.fields.CharField')(default='100%', max_length=6)),
                ('height', self.gf('django.db.models.fields.CharField')(default='400px', max_length=6)),
                ('info_window', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('scrollwheel', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('double_click_zoom', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('draggable', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('keyboard_shortcuts', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('pan_control', self.gf('django.db.models.fields.BooleanField')(default=True)),<commit_msg>Make sure all the db columns are there<commit_after># -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models, connection


class Migration(SchemaMigration):

    def forwards(self, orm):
        table_names = connection.introspection.table_names()
        if 'cmsplugin_googlemap' in table_names or 'googlemap_googlemap' in table_names:
            # Rename tables
            if 'cmsplugin_googlemap' in table_names:
                db.rename_table('cmsplugin_googlemap', 'djangocms_googlemap_googlemap')
            elif 'googlemap_googlemap' in table_names:
                db.rename_table('googlemap_googlemap', 'djangocms_googlemap_googlemap')

            # Check for missing fields from previous migrations
            # (0013_auto__add_field_googlemap_info_window__add_field_googlemap_scrollwheel.py)

            # South will not raise an Exception if the column already exists

            # Adding field 'GoogleMap.info_window'
            db.add_column(u'djangocms_googlemap_googlemap', 'info_window',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

            # Adding field 'GoogleMap.scrollwheel'
            db.add_column(u'djangocms_googlemap_googlemap', 'scrollwheel',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

            # Adding field 'GoogleMap.double_click_zoom'
            db.add_column(u'djangocms_googlemap_googlemap', 'double_click_zoom',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

            # Adding field 'GoogleMap.draggable'
            db.add_column(u'djangocms_googlemap_googlemap', 'draggable',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

            # Adding field 'GoogleMap.keyboard_shortcuts'
            db.add_column(u'djangocms_googlemap_googlemap', 'keyboard_shortcuts',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

            # Adding field 'GoogleMap.pan_control'
            db.add_column(u'djangocms_googlemap_googlemap', 'pan_control',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

            # Adding field 'GoogleMap.zoom_control'
            db.add_column(u'djangocms_googlemap_googlemap', 'zoom_control',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

            # Adding field 'GoogleMap.street_view_control'
            db.add_column(u'djangocms_googlemap_googlemap', 'street_view_control',
                          self.gf('django.db.models.fields.BooleanField')(default=True),
                          keep_default=False)

        else:
            # Adding model 'GoogleMap'
            db.create_table(u'djangocms_googlemap_googlemap', (
                (u'cmsplugin_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cms.CMSPlugin'], unique=True, primary_key=True)),
                ('title', self.gf('django.db.models.fields.CharField')(max_length=100, null=True, blank=True)),
                ('address', self.gf('django.db.models.fields.CharField')(max_length=150)),
                ('zipcode', self.gf('django.db.models.fields.CharField')(max_length=30)),
                ('city', self.gf('django.db.models.fields.CharField')(max_length=100)),
                ('content', self.gf('django.db.models.fields.CharField')(max_length=255, blank=True)),
                ('zoom', self.gf('django.db.models.fields.PositiveSmallIntegerField')(default=13)),
                ('lat', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=10, decimal_places=6, blank=True)),
                ('lng', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=10, decimal_places=6, blank=True)),
                ('route_planer_title', self.gf('django.db.models.fields.CharField')(default=u'Calculate your fastest way to here', max_length=150, null=True, blank=True)),
                ('route_planer', self.gf('django.db.models.fields.BooleanField')(default=False)),
                ('width', self.gf('django.db.models.fields.CharField')(default='100%', max_length=6)),
                ('height', self.gf('django.db.models.fields.CharField')(default='400px', max_length=6)),
                ('info_window', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('scrollwheel', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('double_click_zoom', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('draggable', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('keyboard_shortcuts', self.gf('django.db.models.fields.BooleanField')(default=True)),
                ('pan_control', self.gf('django.db.models.fields.BooleanField')(default=True)),
{'fraction_non_alphanumeric': 0.14005742104606167, 'fraction_numerical': 0.009237298714267882, 'mean_word_length': 2.879903147699758, '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': '6029752', 'n_tokens_mistral': 2491, 'n_tokens_neox': 2306, 'n_words': 293}