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 ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
24 ('password', self.gf('django.db.models.fields.TextField')()),
25 ('keypair', self.gf('django.db.models.fields.TextField')()),
26 ('authority_hrn', self.gf('django.db.models.fields.TextField')()),
28 db.send_create_signal(u'portal', ['PendingUser'])
30 # Adding model 'PendingSlice'
31 db.create_table(u'portal_pendingslice', (
32 (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
33 ('slice_name', self.gf('django.db.models.fields.TextField')()),
35 db.send_create_signal(u'portal', ['PendingSlice'])
38 def backwards(self, orm):
39 # Deleting model 'Institution'
40 db.delete_table(u'portal_institution')
42 # Deleting model 'PendingUser'
43 db.delete_table(u'portal_pendinguser')
45 # Deleting model 'PendingSlice'
46 db.delete_table(u'portal_pendingslice')
50 u'portal.institution': {
51 'Meta': {'object_name': 'Institution'},
52 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
53 'name': ('django.db.models.fields.TextField', [], {})
55 u'portal.pendingslice': {
56 'Meta': {'object_name': 'PendingSlice'},
57 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'slice_name': ('django.db.models.fields.TextField', [], {})
60 u'portal.pendinguser': {
61 'Meta': {'object_name': 'PendingUser'},
62 'authority_hrn': ('django.db.models.fields.TextField', [], {}),
63 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
64 'first_name': ('django.db.models.fields.TextField', [], {}),
65 u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
66 'keypair': ('django.db.models.fields.TextField', [], {}),
67 'last_name': ('django.db.models.fields.TextField', [], {}),
68 'password': ('django.db.models.fields.TextField', [], {})
72 complete_apps = ['portal']