1 # -*- coding: utf-8 -*-
2 from south.utils import datetime_utils as datetime
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 # Deleting field 'ProxyGrantingTicket.serviceTicket'
12 db.delete_column('cas_provider_proxygrantingticket', 'serviceTicket_id')
14 # Adding field 'ProxyGrantingTicket.user'
15 db.add_column('cas_provider_proxygrantingticket', 'user',
16 self.gf('django.db.models.fields.related.ForeignKey')(default=0, to=orm['auth.User']),
19 # Adding field 'ProxyGrantingTicket.service'
20 db.add_column('cas_provider_proxygrantingticket', 'service',
21 self.gf('django.db.models.fields.URLField')(max_length=200, null=True),
24 # Adding field 'ProxyGrantingTicket.pgt'
25 db.add_column('cas_provider_proxygrantingticket', 'pgt',
26 self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cas_provider.ProxyGrantingTicket'], null=True),
30 def backwards(self, orm):
31 # Adding field 'ProxyGrantingTicket.serviceTicket'
32 db.add_column('cas_provider_proxygrantingticket', 'serviceTicket',
33 self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cas_provider.ServiceTicket'], null=True),
36 # Deleting field 'ProxyGrantingTicket.user'
37 db.delete_column('cas_provider_proxygrantingticket', 'user_id')
39 # Deleting field 'ProxyGrantingTicket.service'
40 db.delete_column('cas_provider_proxygrantingticket', 'service')
42 # Deleting field 'ProxyGrantingTicket.pgt'
43 db.delete_column('cas_provider_proxygrantingticket', 'pgt_id')
48 'Meta': {'object_name': 'Group'},
49 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
50 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
51 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
54 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
55 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
56 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
57 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
58 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
61 'Meta': {'object_name': 'User'},
62 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
63 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
64 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
65 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
66 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
67 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
68 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
69 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
70 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
71 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
72 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
73 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
74 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
76 'cas_provider.loginticket': {
77 'Meta': {'object_name': 'LoginTicket'},
78 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
79 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
80 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'})
82 'cas_provider.proxygrantingticket': {
83 'Meta': {'object_name': 'ProxyGrantingTicket'},
84 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
85 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86 'pgt': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cas_provider.ProxyGrantingTicket']", 'null': 'True'}),
87 'pgtiou': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
88 'service': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True'}),
89 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
90 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
92 'cas_provider.proxygrantingticketiou': {
93 'Meta': {'object_name': 'ProxyGrantingTicketIOU'},
94 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
95 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96 'proxyGrantingTicket': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cas_provider.ProxyGrantingTicket']"}),
97 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'})
99 'cas_provider.proxyticket': {
100 'Meta': {'object_name': 'ProxyTicket', '_ormbases': ['cas_provider.ServiceTicket']},
101 'proxyGrantingTicket': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cas_provider.ProxyGrantingTicket']"}),
102 'serviceticket_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cas_provider.ServiceTicket']", 'unique': 'True', 'primary_key': 'True'})
104 'cas_provider.serviceticket': {
105 'Meta': {'object_name': 'ServiceTicket'},
106 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
107 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
108 'service': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
109 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
110 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
112 'contenttypes.contenttype': {
113 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
114 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
115 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
117 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
121 complete_apps = ['cas_provider']