3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding model 'ProxyGrantingTicket'
12 db.create_table('cas_provider_proxygrantingticket', (
13 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
14 ('ticket', self.gf('django.db.models.fields.CharField')(max_length=32)),
15 ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
16 ('serviceTicket', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cas_provider.ServiceTicket'], null=True)),
17 ('pgtiou', self.gf('django.db.models.fields.CharField')(max_length=256)),
18 ('targetService', self.gf('django.db.models.fields.URLField')(max_length=200)),
20 db.send_create_signal('cas_provider', ['ProxyGrantingTicket'])
22 # Adding model 'ProxyTicket'
23 db.create_table('cas_provider_proxyticket', (
24 ('serviceticket_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cas_provider.ServiceTicket'], unique=True, primary_key=True)),
25 ('proxyGrantingTicket', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cas_provider.ProxyGrantingTicket'])),
27 db.send_create_signal('cas_provider', ['ProxyTicket'])
29 # Adding model 'ProxyGrantingTicketIOU'
30 db.create_table('cas_provider_proxygrantingticketiou', (
31 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
32 ('ticket', self.gf('django.db.models.fields.CharField')(max_length=32)),
33 ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
34 ('proxyGrantingTicket', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cas_provider.ProxyGrantingTicket'])),
36 db.send_create_signal('cas_provider', ['ProxyGrantingTicketIOU'])
39 def backwards(self, orm):
41 # Deleting model 'ProxyGrantingTicket'
42 db.delete_table('cas_provider_proxygrantingticket')
44 # Deleting model 'ProxyTicket'
45 db.delete_table('cas_provider_proxyticket')
47 # Deleting model 'ProxyGrantingTicketIOU'
48 db.delete_table('cas_provider_proxygrantingticketiou')
53 'Meta': {'object_name': 'Group'},
54 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
56 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
59 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
60 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
61 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
62 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
63 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
66 'Meta': {'object_name': 'User'},
67 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
68 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
69 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
70 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
71 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
72 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
73 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
74 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
75 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
76 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
77 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
78 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
79 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
81 'cas_provider.loginticket': {
82 'Meta': {'object_name': 'LoginTicket'},
83 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
84 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
85 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'})
87 'cas_provider.proxygrantingticket': {
88 'Meta': {'object_name': 'ProxyGrantingTicket'},
89 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
90 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
91 'pgtiou': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
92 'serviceTicket': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cas_provider.ServiceTicket']", 'null': 'True'}),
93 'targetService': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
94 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'})
96 'cas_provider.proxygrantingticketiou': {
97 'Meta': {'object_name': 'ProxyGrantingTicketIOU'},
98 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
99 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100 'proxyGrantingTicket': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cas_provider.ProxyGrantingTicket']"}),
101 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'})
103 'cas_provider.proxyticket': {
104 'Meta': {'object_name': 'ProxyTicket', '_ormbases': ['cas_provider.ServiceTicket']},
105 'proxyGrantingTicket': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cas_provider.ProxyGrantingTicket']"}),
106 'serviceticket_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cas_provider.ServiceTicket']", 'unique': 'True', 'primary_key': 'True'})
108 'cas_provider.serviceticket': {
109 'Meta': {'object_name': 'ServiceTicket'},
110 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
111 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
112 'service': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
113 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
114 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
116 'contenttypes.contenttype': {
117 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
118 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
119 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
120 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
121 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
125 complete_apps = ['cas_provider']