text: # -*- 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 'WebServer.host'
          db.delete_column(u'client_webserver', 'host')
  
          # Adding field 'WebServer.url'
          db.add_column(u'client_webserver', 'url',
                        self.gf('django.db.models.fields.CharField')(default='', max_length=1024),
                        keep_default=False)
  
  
      def backwards(self, orm):
  
          # User chose to not deal with backwards NULL issues for 'WebServer.host'
          raise RuntimeError("Cannot reverse this migration. 'WebServer.host' and its values cannot be restored.")
          
          # The following code is provided here to aid in writing a correct migration        # Adding field 'WebServer.host'
          db.add_column(u'client_webserver', 'host',
                        self.gf('django.db.models.fields.CharField')(max_length=1024),
                        keep_default=False)
  
          # Deleting field 'WebServer.url'
          db.delete_column(u'client_webserver', 'url')
  
  
      models = {
          'client.backup': {
              'Meta': {'object_name': 'Backup'},
              'destination_name': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'kind': ('django.db.models.fields.CharField', [], {'default': "'SCHEDULED'", 'max_length': '13'}),
              'last_error': ('django.db.models.fields.TextField', [], {'null': 'True'}),
              'local_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
              'remote_id': ('django.db.models.fields.BigIntegerField', [], {}),
              'schedule': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['client.Schedule']"}),
              'size': ('django.db.models.fields.BigIntegerField', [], {'null': 'True'}),
              'state': ('django.db.models.fields.CharField', [], {'default': "'IDLE'", 'max_length': '13'}),
              'time': ('django.db.models.fields.DateTimeField', [], {})
          },
          'client.destination': {
              'Meta': {'ordering': "[u'name']", 'object_name': 'Destination'},
              'name': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'primary_key': 'True'})
          },
          'client.oplog': {
              'Meta': {'object_name': 'OpLog'},
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
          },
          'client.origin': {
              'Meta': {'object_name': 'Origin'},
              'auth_token': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'remote_id': ('django.db.models.fields.BigIntegerField', [], {})
          },
          'client.rrule': {
              'Meta': {'object_name': 'RRule'},
              'description': ('django.db.models.fields.TextField', [], {}),
              'frequency': ('django.db.models.fields.CharField', [], {'max_length': '10'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
              'params': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
          },
          'client.schedule': {
              'Meta': {'object_name': 'Schedule'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'destination': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['client.Destination']", 'null': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'rule': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['client.RRule']", 'null': 'True', 'blank': 'True'}),
              'schedule_time': ('django.db.models.fields.DateTimeField', [], {})
          },
          'client.webserver': {
              'Meta': {'object_name': 'WebServer'},
              'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
              'api_root': ('django.db.models.fields.CharField', [], {'max_length': '1024'}),
              'creation_date': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
              u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
              'name': ('django.db.models.fields.CharField', [], {'max_length': '80'}),
              'url': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
          }
      }
  
      complete_apps = ['client']