FIX: conflict in settings.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             ('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')()),
28         ))
29         db.send_create_signal(u'portal', ['PendingUser'])
30
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')()),
35         ))
36         db.send_create_signal(u'portal', ['PendingSlice'])
37
38
39     def backwards(self, orm):
40         # Deleting model 'Institution'
41         db.delete_table(u'portal_institution')
42
43         # Deleting model 'PendingUser'
44         db.delete_table(u'portal_pendinguser')
45
46         # Deleting model 'PendingSlice'
47         db.delete_table(u'portal_pendingslice')
48
49
50     models = {
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', [], {})
55         },
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', [], {})
60         },
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', [], {})
71         }
72     }
73
74     complete_apps = ['portal']