add validationview.py
[myslice.git] / portal / migrations / 0001_initial.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 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')()),
15         ))
16         db.send_create_signal(u'portal', ['Institution'])
17
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')()),
27         ))
28         db.send_create_signal(u'portal', ['PendingUser'])
29
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')()),
34         ))
35         db.send_create_signal(u'portal', ['PendingSlice'])
36
37
38     def backwards(self, orm):
39         # Deleting model 'Institution'
40         db.delete_table(u'portal_institution')
41
42         # Deleting model 'PendingUser'
43         db.delete_table(u'portal_pendinguser')
44
45         # Deleting model 'PendingSlice'
46         db.delete_table(u'portal_pendingslice')
47
48
49     models = {
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', [], {})
54         },
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', [], {})
59         },
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', [], {})
69         }
70     }
71
72     complete_apps = ['portal']