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 unique constraint on 'ServiceDesk', fields ['name']
12 db.create_unique('syrup_servicedesk', ['name'])
14 # Adding unique constraint on 'Term', fields ['code']
15 db.create_unique('syrup_term', ['code'])
17 # Adding unique constraint on 'Course', fields ['code']
18 db.create_unique('syrup_course', ['code'])
20 # Adding unique constraint on 'Config', fields ['name']
21 db.create_unique('syrup_config', ['name'])
24 def backwards(self, orm):
26 # Removing unique constraint on 'ServiceDesk', fields ['name']
27 db.delete_unique('syrup_servicedesk', ['name'])
29 # Removing unique constraint on 'Term', fields ['code']
30 db.delete_unique('syrup_term', ['code'])
32 # Removing unique constraint on 'Course', fields ['code']
33 db.delete_unique('syrup_course', ['code'])
35 # Removing unique constraint on 'Config', fields ['name']
36 db.delete_unique('syrup_config', ['name'])
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']", 'blank': 'True'})
47 'Meta': {'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']", 'blank': 'True'}),
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
61 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
62 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
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']", 'blank': 'True'}),
67 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
69 'contenttypes.contenttype': {
70 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
71 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
72 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
73 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
74 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
77 'Meta': {'object_name': 'Config'},
78 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '256'}),
80 'value': ('django.db.models.fields.CharField', [], {'max_length': '8192'})
83 'Meta': {'object_name': 'Course'},
84 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}),
85 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
86 'department': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Department']"}),
87 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
88 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
89 'name': ('django.db.models.fields.CharField', [], {'max_length': '1024'})
92 'Meta': {'object_name': 'Department'},
93 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
94 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
95 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
97 'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
98 'service_desk': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.ServiceDesk']"})
101 'Meta': {'object_name': 'Group'},
102 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
103 'external_id': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '2048', 'null': 'True', 'blank': 'True'}),
104 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
106 'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Site']"})
109 'Meta': {'object_name': 'Item'},
110 'author': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '8192', 'null': 'True', 'blank': 'True'}),
111 'bib_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
112 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
113 'fileobj': ('django.db.models.fields.files.FileField', [], {'default': 'None', 'max_length': '255', 'null': 'True', 'blank': 'True'}),
114 'fileobj_mimetype': ('django.db.models.fields.CharField', [], {'max_length': '128', 'null': 'True', 'blank': 'True'}),
115 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
116 'item_type': ('django.db.models.fields.CharField', [], {'max_length': '7'}),
117 'itemtype': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '1', 'null': 'True', 'blank': 'True'}),
118 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
119 'marcxml': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
120 'parent_heading': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Item']", 'null': 'True', 'blank': 'True'}),
121 'published': ('django.db.models.fields.CharField', [], {'max_length': '64', 'null': 'True', 'blank': 'True'}),
122 'publisher': ('django.db.models.fields.CharField', [], {'max_length': '8192', 'null': 'True', 'blank': 'True'}),
123 'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Site']"}),
124 'title': ('django.db.models.fields.CharField', [], {'max_length': '8192', 'db_index': 'True'}),
125 'url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'})
127 'syrup.membership': {
128 'Meta': {'unique_together': "(('group', 'user'),)", 'object_name': 'Membership'},
129 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
130 'group': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Group']"}),
131 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
132 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
133 'role': ('django.db.models.fields.CharField', [], {'default': "'STUDT'", 'max_length': '6'}),
134 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
136 'syrup.servicedesk': {
137 'Meta': {'object_name': 'ServiceDesk'},
138 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
139 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
140 'external_id': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
141 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
142 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
143 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'})
146 'Meta': {'unique_together': "(('course', 'term', 'owner'),)", 'object_name': 'Site'},
147 'access': ('django.db.models.fields.CharField', [], {'default': "'LOGIN'", 'max_length': '5'}),
148 'course': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Course']"}),
149 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
150 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
151 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
152 'owner': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
153 'passkey': ('django.db.models.fields.CharField', [], {'db_index': 'True', 'max_length': '256', 'null': 'True', 'blank': 'True'}),
154 'service_desk': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.ServiceDesk']"}),
155 'term': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['syrup.Term']"})
158 'Meta': {'object_name': 'Term'},
159 'code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '64'}),
160 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
161 'finish': ('django.db.models.fields.DateField', [], {}),
162 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
163 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
164 'name': ('django.db.models.fields.CharField', [], {'max_length': '256'}),
165 'start': ('django.db.models.fields.DateField', [], {})
167 'syrup.userprofile': {
168 'Meta': {'object_name': 'UserProfile'},
169 'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
170 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
171 'ils_userid': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True', 'blank': 'True'}),
172 'last_email_notice': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'null': 'True', 'blank': 'True'}),
173 'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
174 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"}),
175 'wants_email_notices': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
177 'syrup.z3950target': {
178 'Meta': {'object_name': 'Z3950Target'},
179 'active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
180 'database': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
181 'host': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
182 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
183 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
184 'port': ('django.db.models.fields.IntegerField', [], {'default': '210'}),
185 'syntax': ('django.db.models.fields.CharField', [], {'default': "'USMARC'", 'max_length': '10'})
189 complete_apps = ['syrup']