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 'ServiceTicket'
12 db.create_table('cas_provider_serviceticket', (
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 ('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
17 ('service', self.gf('django.db.models.fields.URLField')(max_length=200)),
19 db.send_create_signal('cas_provider', ['ServiceTicket'])
21 # Adding model 'LoginTicket'
22 db.create_table('cas_provider_loginticket', (
23 ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
24 ('ticket', self.gf('django.db.models.fields.CharField')(max_length=32)),
25 ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now=True, blank=True)),
27 db.send_create_signal('cas_provider', ['LoginTicket'])
30 def backwards(self, orm):
32 # Deleting model 'ServiceTicket'
33 db.delete_table('cas_provider_serviceticket')
35 # Deleting model 'LoginTicket'
36 db.delete_table('cas_provider_loginticket')
41 'Meta': {'object_name': 'Group'},
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
43 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
44 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
47 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
48 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
49 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
51 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
54 'Meta': {'object_name': 'User'},
55 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
56 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
57 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
58 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
61 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
62 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
64 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
65 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
66 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
67 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
69 'cas_provider.loginticket': {
70 'Meta': {'object_name': 'LoginTicket'},
71 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
72 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'})
75 'cas_provider.serviceticket': {
76 'Meta': {'object_name': 'ServiceTicket'},
77 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
78 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'service': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
80 'ticket': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
81 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
83 'contenttypes.contenttype': {
84 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
85 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
86 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
87 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
88 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
92 complete_apps = ['cas_provider']