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 # Changing field 'User.reputation'
12 db.alter_column('forum_user', 'reputation', self.gf('django.db.models.fields.IntegerField')())
15 def backwards(self, orm):
17 # Changing field 'User.reputation'
18 db.alter_column('forum_user', 'reputation', self.gf('django.db.models.fields.PositiveIntegerField')())
23 'Meta': {'object_name': 'Group'},
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
26 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
29 'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
30 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
31 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
32 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
33 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
36 'Meta': {'object_name': 'User'},
37 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
38 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
39 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
40 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
41 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
42 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
43 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
44 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
45 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
46 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
47 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
48 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
49 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
51 'contenttypes.contenttype': {
52 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
53 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
54 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
55 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
56 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
59 'Meta': {'object_name': 'Action'},
60 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
61 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
62 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
63 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
64 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
65 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
66 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
69 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
70 'real_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proxied_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
71 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
73 'forum.actionrepute': {
74 'Meta': {'object_name': 'ActionRepute'},
75 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
76 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
77 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
78 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
79 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
80 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
82 'forum.authkeyuserassociation': {
83 'Meta': {'object_name': 'AuthKeyUserAssociation'},
84 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
85 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
86 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
87 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
88 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
91 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
92 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}),
93 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
94 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}),
95 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
96 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
97 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),
98 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
101 'Meta': {'object_name': 'Badge'},
102 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
103 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}),
104 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
105 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
106 'type': ('django.db.models.fields.SmallIntegerField', [], {})
109 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
110 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
111 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
112 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
113 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}),
114 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
115 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"})
118 'Meta': {'object_name': 'KeyValue'},
119 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
120 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
121 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
124 'Meta': {'object_name': 'MarkedTag'},
125 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
126 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
127 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
128 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
131 'Meta': {'object_name': 'Node'},
132 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
133 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
134 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
135 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
136 'body': ('django.db.models.fields.TextField', [], {}),
137 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
138 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
139 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
140 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
141 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
142 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
143 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
144 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
145 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
146 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
147 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
148 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}),
149 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
150 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}),
151 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
153 'forum.noderevision': {
154 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
155 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
156 'body': ('django.db.models.fields.TextField', [], {}),
157 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
158 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
159 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
160 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
161 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
162 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
163 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
166 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'},
167 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}),
168 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
169 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}),
170 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
172 'forum.openidassociation': {
173 'Meta': {'object_name': 'OpenIdAssociation'},
174 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
175 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
176 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
177 'issued': ('django.db.models.fields.IntegerField', [], {}),
178 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
179 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
180 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
182 'forum.openidnonce': {
183 'Meta': {'object_name': 'OpenIdNonce'},
184 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
185 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
186 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
187 'timestamp': ('django.db.models.fields.IntegerField', [], {})
189 'forum.questionsubscription': {
190 'Meta': {'object_name': 'QuestionSubscription'},
191 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
192 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
193 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2011, 5, 17, 8, 18, 42, 203698)'}),
194 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
195 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
197 'forum.subscriptionsettings': {
198 'Meta': {'object_name': 'SubscriptionSettings'},
199 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
200 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
201 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
202 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
203 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
204 'new_question': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
205 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
206 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
207 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
208 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
209 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
210 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
211 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
212 'send_digest': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
213 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
214 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
217 'Meta': {'ordering': "('-used_count', 'name')", 'object_name': 'Tag'},
218 'created_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now', 'null': 'True', 'blank': 'True'}),
219 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
220 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
221 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}),
222 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
223 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
226 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
227 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
228 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
229 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
230 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
231 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
232 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
233 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
234 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
235 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
236 'reputation': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
237 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
238 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}),
239 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
240 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
242 'forum.userproperty': {
243 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'},
244 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
245 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
246 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}),
247 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
249 'forum.validationhash': {
250 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
251 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2011, 5, 18, 8, 18, 42, 405710)'}),
252 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
253 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
254 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
255 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
256 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
259 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
260 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
261 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
262 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}),
263 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
264 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
265 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
269 complete_apps = ['forum']