3 from south.db import db
\r
4 from south.v2 import SchemaMigration
\r
5 from django.db import models
\r
7 class Migration(SchemaMigration):
\r
9 def forwards(self, orm):
\r
11 # Deleting field 'Node.wiki'
\r
12 db.delete_column('forum_node', 'wiki')
\r
14 # Deleting field 'Node.deleted'
\r
15 db.delete_column('forum_node', 'deleted_id')
\r
17 # Deleting field 'Node.extra_action'
\r
18 db.delete_column('forum_node', 'extra_action_id')
\r
20 # Deleting field 'Node.in_moderation'
\r
21 db.delete_column('forum_node', 'in_moderation_id')
\r
24 def backwards(self, orm):
\r
26 # Adding field 'Node.wiki'
\r
27 db.add_column('forum_node', 'wiki', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True), keep_default=False)
\r
29 # Adding field 'Node.deleted'
\r
30 db.add_column('forum_node', 'deleted', self.gf('django.db.models.fields.related.ForeignKey')(related_name='deleted_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False)
\r
32 # Adding field 'Node.extra_action'
\r
33 db.add_column('forum_node', 'extra_action', self.gf('django.db.models.fields.related.ForeignKey')(related_name='extra_node', null=True, to=orm['forum.Action']), keep_default=False)
\r
35 # Adding field 'Node.in_moderation'
\r
36 db.add_column('forum_node', 'in_moderation', self.gf('django.db.models.fields.related.ForeignKey')(related_name='moderated_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False)
\r
41 'Meta': {'object_name': 'Group'},
\r
42 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
43 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
44 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
\r
46 'auth.permission': {
\r
47 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
48 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
49 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
51 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
54 'Meta': {'object_name': 'User'},
\r
55 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
56 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
57 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
58 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
\r
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
60 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
61 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
62 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
63 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
64 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
65 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
66 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
\r
67 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
69 'contenttypes.contenttype': {
\r
70 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
71 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
72 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
73 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
74 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
77 'Meta': {'object_name': 'Action'},
\r
78 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
79 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
80 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
81 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
82 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
83 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
84 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
85 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
86 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
87 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
88 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
90 'forum.actionrepute': {
\r
91 'Meta': {'object_name': 'ActionRepute'},
\r
92 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
93 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
94 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
95 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
96 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
97 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
99 'forum.authkeyuserassociation': {
\r
100 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
101 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
102 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
103 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
104 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
105 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
108 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
\r
109 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
110 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
111 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}),
\r
112 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
113 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
114 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
115 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
118 'Meta': {'object_name': 'Badge'},
\r
119 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
120 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}),
\r
121 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
\r
122 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
123 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
126 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
\r
127 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
128 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
129 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
130 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}),
\r
131 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
132 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"})
\r
134 'forum.keyvalue': {
\r
135 'Meta': {'object_name': 'KeyValue'},
\r
136 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
137 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
138 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
140 'forum.markedtag': {
\r
141 'Meta': {'object_name': 'MarkedTag'},
\r
142 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
143 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
144 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
145 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
148 'Meta': {'object_name': 'Node'},
\r
149 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
150 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
151 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
152 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
153 'body': ('django.db.models.fields.TextField', [], {}),
\r
154 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
155 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
156 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
157 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
158 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
159 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
160 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
161 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
162 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
163 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
164 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}),
\r
165 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
166 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}),
\r
167 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
169 'forum.noderevision': {
\r
170 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
171 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
172 'body': ('django.db.models.fields.TextField', [], {}),
\r
173 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
174 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
175 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
176 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
177 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
178 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
179 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
181 'forum.nodestate': {
\r
182 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'},
\r
183 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
184 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
185 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}),
\r
186 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
\r
188 'forum.openidassociation': {
\r
189 'Meta': {'object_name': 'OpenIdAssociation'},
\r
190 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
191 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
192 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
193 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
194 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
195 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
196 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
198 'forum.openidnonce': {
\r
199 'Meta': {'object_name': 'OpenIdNonce'},
\r
200 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
201 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
202 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
203 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
205 'forum.questionsubscription': {
\r
206 'Meta': {'object_name': 'QuestionSubscription'},
\r
207 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
208 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
209 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 24, 19, 29, 24, 232000)'}),
\r
210 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
211 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
213 'forum.subscriptionsettings': {
\r
214 'Meta': {'object_name': 'SubscriptionSettings'},
\r
215 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
216 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
217 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
218 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
219 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
220 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
221 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
222 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
223 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
224 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
225 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
226 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
227 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
228 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
229 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
230 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
231 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
232 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
235 'Meta': {'object_name': 'Tag'},
\r
236 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
237 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
238 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
239 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
240 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
241 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}),
\r
242 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
243 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
246 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
247 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
248 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
249 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
250 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
251 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
252 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
253 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
254 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
255 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
256 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
257 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
258 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}),
\r
259 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
260 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
262 'forum.validationhash': {
\r
263 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
264 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 25, 19, 29, 24, 443000)'}),
\r
265 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
266 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
267 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
268 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
269 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
272 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
\r
273 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
274 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
275 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}),
\r
276 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
277 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
278 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
282 complete_apps = ['forum']
\r