# -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Veranstaltung.reihe'
        db.delete_column(u'veranstaltungen_veranstaltung', 'reihe')

        # Deleting field 'Veranstaltung.text'
        db.delete_column(u'veranstaltungen_veranstaltung', 'text')

        # Deleting field 'Veranstaltung.url'
        db.delete_column(u'veranstaltungen_veranstaltung', 'url')

        # Adding field 'Veranstaltung.content'
        db.add_column(u'veranstaltungen_veranstaltung', 'content',
                      self.gf('mezzanine.core.fields.RichTextField')(default='sample content'),
                      keep_default=False)


    def backwards(self, orm):

        # User chose to not deal with backwards NULL issues for 'Veranstaltung.reihe'
        raise RuntimeError("Cannot reverse this migration. 'Veranstaltung.reihe' and its values cannot be restored.")
        
        # The following code is provided here to aid in writing a correct migration        # Adding field 'Veranstaltung.reihe'
        db.add_column(u'veranstaltungen_veranstaltung', 'reihe',
                      self.gf('django.db.models.fields.CharField')(max_length=50),
                      keep_default=False)


        # User chose to not deal with backwards NULL issues for 'Veranstaltung.text'
        raise RuntimeError("Cannot reverse this migration. 'Veranstaltung.text' and its values cannot be restored.")
        
        # The following code is provided here to aid in writing a correct migration        # Adding field 'Veranstaltung.text'
        db.add_column(u'veranstaltungen_veranstaltung', 'text',
                      self.gf('django.db.models.fields.TextField')(),
                      keep_default=False)


        # User chose to not deal with backwards NULL issues for 'Veranstaltung.url'
        raise RuntimeError("Cannot reverse this migration. 'Veranstaltung.url' and its values cannot be restored.")
        
        # The following code is provided here to aid in writing a correct migration        # Adding field 'Veranstaltung.url'
        db.add_column(u'veranstaltungen_veranstaltung', 'url',
                      self.gf('django.db.models.fields.URLField')(max_length=200),
                      keep_default=False)

        # Deleting field 'Veranstaltung.content'
        db.delete_column(u'veranstaltungen_veranstaltung', 'content')


    models = {
        u'sites.site': {
            'Meta': {'ordering': "(u'domain',)", 'object_name': 'Site', 'db_table': "u'django_site'"},
            'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        u'veranstaltungen.veranstaltung': {
            'Meta': {'object_name': 'Veranstaltung'},
            '_meta_title': ('django.db.models.fields.CharField', [], {'max_length': '500', 'null': 'True', 'blank': 'True'}),
            'beginn': ('django.db.models.fields.DateTimeField', [], {}),
            'bild': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'content': ('mezzanine.core.fields.RichTextField', [], {}),
            'created': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'ende': ('django.db.models.fields.DateTimeField', [], {'blank': 'True'}),
            'expiry_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'gen_description': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'in_sitemap': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            u'keywords_string': ('django.db.models.fields.CharField', [], {'max_length': '500', 'blank': 'True'}),
            'kontakt_mail': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
            'publish_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'short_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}),
            'site': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['sites.Site']"}),
            'slug': ('django.db.models.fields.CharField', [], {'max_length': '2000', 'null': 'True', 'blank': 'True'}),
            'status': ('django.db.models.fields.IntegerField', [], {'default': '2'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '500'}),
            'updated': ('django.db.models.fields.DateTimeField', [], {'null': 'True'})
        }
    }

    complete_apps = ['veranstaltungen']