Fix: update only selected user not all
[myslice.git] / portal / migrations / 0002_extend_slice.py
1 # -*- coding: utf-8 -*-
2 import datetime
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
6
7
8 class Migration(SchemaMigration):
9
10     def forwards(self, orm):
11         # Adding field 'PendingSlice.authority_hrn'
12         db.add_column(u'portal_pendingslice', 'authority_hrn',
13                       self.gf('django.db.models.fields.TextField')(null=True),
14                       keep_default=False)
15
16
17     def backwards(self, orm):
18         # Deleting field 'PendingSlice.authority_hrn'
19         db.delete_column(u'portal_pendingslice', 'authority_hrn')
20
21
22     models = {
23         u'portal.institution': {
24             'Meta': {'object_name': 'Institution'},
25             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26             'name': ('django.db.models.fields.TextField', [], {})
27         },
28         u'portal.pendingslice': {
29             'Meta': {'object_name': 'PendingSlice'},
30             'authority_hrn': ('django.db.models.fields.TextField', [], {'null': 'True'}),
31             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
32             'slice_name': ('django.db.models.fields.TextField', [], {})
33         },
34         u'portal.pendinguser': {
35             'Meta': {'object_name': 'PendingUser'},
36             'authority_hrn': ('django.db.models.fields.TextField', [], {}),
37             'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
38             'first_name': ('django.db.models.fields.TextField', [], {}),
39             u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
40             'keypair': ('django.db.models.fields.TextField', [], {}),
41             'last_name': ('django.db.models.fields.TextField', [], {}),
42             'password': ('django.db.models.fields.TextField', [], {})
43         }
44     }
45
46     complete_apps = ['portal']