project/scipycon/registration/migrations/0002_auto__add_field_wifi_registration_id.py
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 18 Nov 2010 15:03:21 +0530
branchsouth-migration
changeset 274 334746111891
permissions -rw-r--r--
Add autogenerated migrations to the registration app.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
274
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     1
# encoding: utf-8
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     2
import datetime
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     3
from south.db import db
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     4
from south.v2 import SchemaMigration
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     5
from django.db import models
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     6
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     7
class Migration(SchemaMigration):
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     8
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
     9
    def forwards(self, orm):
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    10
        
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    11
        # Adding field 'Wifi.registration_id'
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    12
        db.add_column('registration_wifi', 'registration_id', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True), keep_default=False)
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    13
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    14
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    15
    def backwards(self, orm):
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    16
        
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    17
        # Deleting field 'Wifi.registration_id'
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    18
        db.delete_column('registration_wifi', 'registration_id')
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    19
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    20
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    21
    models = {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    22
        'auth.group': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    23
            'Meta': {'object_name': 'Group'},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    24
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    25
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    26
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    27
        },
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    28
        'auth.permission': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    29
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    30
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    31
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    32
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    33
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    34
        },
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    35
        'auth.user': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    36
            'Meta': {'object_name': 'User'},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    37
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    38
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    39
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    40
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    41
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    42
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    43
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    44
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    45
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    46
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    47
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    48
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    49
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    50
        },
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    51
        'base.event': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    52
            'Meta': {'object_name': 'Event'},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    53
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    54
            'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    55
            'scope': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    56
            'status': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    57
            'turn': ('django.db.models.fields.CharField', [], {'max_length': '255'})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    58
        },
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    59
        'contenttypes.contenttype': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    60
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    61
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    62
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    63
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    64
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    65
        },
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    66
        'registration.accommodation': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    67
            'Meta': {'object_name': 'Accommodation'},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    68
            'accommodation_days': ('django.db.models.fields.IntegerField', [], {'default': '0', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    69
            'accommodation_required': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    70
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    71
            'scope': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['base.Event']"}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    72
            'sex': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    73
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    74
        },
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    75
        'registration.registration': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    76
            'Meta': {'object_name': 'Registration'},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    77
            'allow_contact': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    78
            'city': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    79
            'conference': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    80
            'final_conference': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    81
            'final_sprint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    82
            'final_tutorial': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    83
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    84
            'last_mod': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    85
            'occupation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    86
            'organisation': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    87
            'phone_num': ('django.db.models.fields.CharField', [], {'max_length': '14', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    88
            'postcode': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    89
            'registrant': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    90
            'scope': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['base.Event']"}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    91
            'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    92
            'sprint': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    93
            'submitted': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    94
            'tshirt': ('django.db.models.fields.CharField', [], {'max_length': '3'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    95
            'tutorial': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    96
        },
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    97
        'registration.wifi': {
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    98
            'Meta': {'object_name': 'Wifi'},
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
    99
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   100
            'registration_id': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   101
            'scope': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['base.Event']"}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   102
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   103
            'wifi': ('django.db.models.fields.CharField', [], {'max_length': '50'})
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   104
        }
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   105
    }
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   106
334746111891 Add autogenerated migrations to the registration app.
Madhusudan.C.S <madhusudancs@gmail.com>
parents:
diff changeset
   107
    complete_apps = ['registration']