1 # -*- coding: utf-8 -*-
3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
8 class Migration(SchemaMigration):
10 def forwards(self, orm):
11 # Adding model 'Institution'
12 db.create_table(u'portal_institution', (
13 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('name', self.gf('django.db.models.fields.TextField')()),
16 db.send_create_signal(u'portal', ['Institution'])
18 # Adding model 'PendingUser'
19 db.create_table(u'portal_pendinguser', (
20 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
21 ('first_name', self.gf('django.db.models.fields.TextField')()),
22 ('last_name', self.gf('django.db.models.fields.TextField')()),
23 ('affiliation', self.gf('django.db.models.fields.TextField')()),
24 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
25 ('password', self.gf('django.db.models.fields.TextField')()),
26 ('keypair', self.gf('django.db.models.fields.TextField')()),
27 ('authority_hrn', self.gf('django.db.models.fields.TextField')()),
29 db.send_create_signal(u'portal', ['PendingUser'])
31 # Adding model 'PendingSlice'
32 db.create_table(u'portal_pendingslice', (
33 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
34 ('slice_name', self.gf('django.db.models.fields.TextField')()),
36 db.send_create_signal(u'portal', ['PendingSlice'])
39 def backwards(self, orm):
40 # Deleting model 'Institution'
41 db.delete_table(u'portal_institution')
43 # Deleting model 'PendingUser'
44 db.delete_table(u'portal_pendinguser')
46 # Deleting model 'PendingSlice'
47 db.delete_table(u'portal_pendingslice')
51 u'portal.institution': {
52 'Meta': {'object_name': 'Institution'},
53 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54 'name': ('django.db.models.fields.TextField', [], {})
56 u'portal.pendingslice': {
57 'Meta': {'object_name': 'PendingSlice'},
58 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
59 'slice_name': ('django.db.models.fields.TextField', [], {})
61 u'portal.pendinguser': {
62 'Meta': {'object_name': 'PendingUser'},
63 'affiliation': ('django.db.models.fields.TextField', [], {}),
64 'authority_hrn': ('django.db.models.fields.TextField', [], {}),
65 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
66 'first_name': ('django.db.models.fields.TextField', [], {}),
67 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'keypair': ('django.db.models.fields.TextField', [], {}),
69 'last_name': ('django.db.models.fields.TextField', [], {}),
70 'password': ('django.db.models.fields.TextField', [], {})
74 complete_apps = ['portal']