Commits

Maciek Szczesniak committed 422af9f

migration reset

Comments (0)

Files changed (2)

cookiecontrol/migrations/0001_initial.py

             ('shape', self.gf('django.db.models.fields.CharField')(default='diamond', max_length=10)),
             ('theme', self.gf('django.db.models.fields.CharField')(default='light', max_length=10)),
             ('start_open', self.gf('django.db.models.fields.BooleanField')(default=True)),
-            ('auto_hide', self.gf('django.db.models.fields.IntegerField')(default=6000)),
+            ('auto_hide', self.gf('django.db.models.fields.IntegerField')(default=6)),
             ('subdomains', self.gf('django.db.models.fields.BooleanField')(default=True)),
             ('countries', self.gf('django.db.models.fields.TextField')(default='United Kingdom')),
             ('ga_enabled', self.gf('django.db.models.fields.BooleanField')(default=False)),
-            ('ga_id', self.gf('django.db.models.fields.CharField')(max_length=15)),
+            ('ga_id', self.gf('django.db.models.fields.CharField')(max_length=15, blank=True)),
+            ('addthis_allow_cookies', self.gf('django.db.models.fields.BooleanField')(default=False)),
+            ('piwik_enabled', self.gf('django.db.models.fields.BooleanField')(default=False)),
+            ('piwik_base_url', self.gf('django.db.models.fields.CharField')(max_length=200, blank=True)),
+            ('piwik_site_id', self.gf('django.db.models.fields.CharField')(max_length=10, blank=True)),
         ))
         db.send_create_signal('cookiecontrol', ['CookieControlConfig'])
 
     models = {
         'cookiecontrol.cookiecontrolconfig': {
             'Meta': {'object_name': 'CookieControlConfig'},
-            'auto_hide': ('django.db.models.fields.IntegerField', [], {'default': '6000'}),
+            'addthis_allow_cookies': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'auto_hide': ('django.db.models.fields.IntegerField', [], {'default': '6'}),
             'countries': ('django.db.models.fields.TextField', [], {'default': "'United Kingdom'"}),
             'full_text': ('django.db.models.fields.TextField', [], {}),
             'ga_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'ga_id': ('django.db.models.fields.CharField', [], {'max_length': '15'}),
+            'ga_id': ('django.db.models.fields.CharField', [], {'max_length': '15', 'blank': 'True'}),
             'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
             'intro_text': ('django.db.models.fields.TextField', [], {}),
-            'position': ('django.db.models.fields.CharField', [], {'default': "('left', 'left')", 'max_length': '10'}),
-            'shape': ('django.db.models.fields.CharField', [], {'default': "('diamond', 'diamond')", 'max_length': '10'}),
+            'piwik_base_url': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
+            'piwik_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'piwik_site_id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'blank': 'True'}),
+            'position': ('django.db.models.fields.CharField', [], {'default': "'left'", 'max_length': '10'}),
+            'shape': ('django.db.models.fields.CharField', [], {'default': "'diamond'", 'max_length': '10'}),
             'start_open': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
             'subdomains': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
-            'theme': ('django.db.models.fields.CharField', [], {'default': "('light', 'light')", 'max_length': '10'})
+            'theme': ('django.db.models.fields.CharField', [], {'default': "'light'", 'max_length': '10'})
         }
     }
 

cookiecontrol/migrations/0003_piwik_addthis.py

-# -*- 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 field 'CookieControlConfig.addthis_allow_cookies'
-        db.add_column('cookiecontrol_cookiecontrolconfig', 'addthis_allow_cookies',
-                      self.gf('django.db.models.fields.BooleanField')(default=False),
-                      keep_default=False)
-
-        # Adding field 'CookieControlConfig.piwik_enabled'
-        db.add_column('cookiecontrol_cookiecontrolconfig', 'piwik_enabled',
-                      self.gf('django.db.models.fields.BooleanField')(default=False),
-                      keep_default=False)
-
-        # Adding field 'CookieControlConfig.piwik_base_url'
-        db.add_column('cookiecontrol_cookiecontrolconfig', 'piwik_base_url',
-                      self.gf('django.db.models.fields.CharField')(default='', max_length=200, blank=True),
-                      keep_default=False)
-
-        # Adding field 'CookieControlConfig.piwik_site_id'
-        db.add_column('cookiecontrol_cookiecontrolconfig', 'piwik_site_id',
-                      self.gf('django.db.models.fields.CharField')(default='', max_length=10, blank=True),
-                      keep_default=False)
-
-
-    def backwards(self, orm):
-        # Deleting field 'CookieControlConfig.addthis_allow_cookies'
-        db.delete_column('cookiecontrol_cookiecontrolconfig', 'addthis_allow_cookies')
-
-        # Deleting field 'CookieControlConfig.piwik_enabled'
-        db.delete_column('cookiecontrol_cookiecontrolconfig', 'piwik_enabled')
-
-        # Deleting field 'CookieControlConfig.piwik_base_url'
-        db.delete_column('cookiecontrol_cookiecontrolconfig', 'piwik_base_url')
-
-        # Deleting field 'CookieControlConfig.piwik_site_id'
-        db.delete_column('cookiecontrol_cookiecontrolconfig', 'piwik_site_id')
-
-
-    models = {
-        'cookiecontrol.cookiecontrolconfig': {
-            'Meta': {'object_name': 'CookieControlConfig'},
-            'addthis_allow_cookies': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'auto_hide': ('django.db.models.fields.IntegerField', [], {'default': '6'}),
-            'countries': ('django.db.models.fields.TextField', [], {'default': "'United Kingdom'"}),
-            'full_text': ('django.db.models.fields.TextField', [], {}),
-            'ga_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'ga_id': ('django.db.models.fields.CharField', [], {'max_length': '15', 'blank': 'True'}),
-            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
-            'intro_text': ('django.db.models.fields.TextField', [], {}),
-            'piwik_base_url': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}),
-            'piwik_enabled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
-            'piwik_site_id': ('django.db.models.fields.CharField', [], {'max_length': '10', 'blank': 'True'}),
-            'position': ('django.db.models.fields.CharField', [], {'default': "'left'", 'max_length': '10'}),
-            'shape': ('django.db.models.fields.CharField', [], {'default': "'diamond'", 'max_length': '10'}),
-            'start_open': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
-            'subdomains': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
-            'theme': ('django.db.models.fields.CharField', [], {'default': "'light'", 'max_length': '10'})
-        }
-    }
-
-    complete_apps = ['cookiecontrol']