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 # Adding field 'Node.extra_action'
\r
12 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
14 # Adding field 'Node.deleted'
\r
15 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
17 # Adding field 'Node.last_edited'
\r
18 db.add_column('forum_node', 'last_edited', self.gf('django.db.models.fields.related.ForeignKey')(related_name='edited_node', unique=True, null=True, to=orm['forum.Action']), keep_default=False)
\r
21 def backwards(self, orm):
\r
23 # Deleting field 'Node.extra_action'
\r
24 db.delete_column('forum_node', 'extra_action_id')
\r
26 # Deleting field 'Node.deleted'
\r
27 db.delete_column('forum_node', 'deleted_id')
\r
29 # Deleting field 'Node.last_edited'
\r
30 db.delete_column('forum_node', 'last_edited_id')
\r
35 'Meta': {'object_name': 'Group'},
\r
36 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
37 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
38 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
40 'auth.permission': {
\r
41 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
42 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
43 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
44 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
45 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
48 'Meta': {'object_name': 'User'},
\r
49 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
50 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
51 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
52 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'blank': 'True'}),
\r
53 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
54 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
55 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
56 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
57 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
58 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
59 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
60 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
\r
61 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
63 'contenttypes.contenttype': {
\r
64 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
65 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
66 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
67 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
68 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
71 'Meta': {'object_name': 'Action'},
\r
72 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
73 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
74 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
75 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
76 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
77 'extra': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
78 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
79 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
80 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
81 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
83 'forum.actionrepute': {
\r
84 'Meta': {'object_name': 'ActionRepute'},
\r
85 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
86 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
87 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
88 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
89 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
92 'Meta': {'object_name': 'Activity', 'db_table': "u'activity'"},
\r
93 'active_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
94 'activity_type': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
95 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
96 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
97 'is_auditted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
98 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
99 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
101 'forum.authkeyuserassociation': {
\r
102 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
103 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
104 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
105 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
106 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
107 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
110 'Meta': {'object_name': 'Award', 'db_table': "u'award'"},
\r
111 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
112 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award_badge'", 'to': "orm['forum.Badge']"}),
\r
113 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
114 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
115 'notified': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
116 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
117 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.User']"})
\r
120 'Meta': {'unique_together': "(('name', 'type'),)", 'object_name': 'Badge', 'db_table': "u'badge'"},
\r
121 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
122 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
123 'description': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
124 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
125 'multiple': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
126 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
127 'slug': ('django.db.models.fields.SlugField', [], {'db_index': 'True', 'max_length': '50', 'blank': 'True'}),
\r
128 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
130 'forum.keyvalue': {
\r
131 'Meta': {'object_name': 'KeyValue'},
\r
132 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
133 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
134 'value': ('forum.models.utils.PickledObjectField', [], {})
\r
136 'forum.markedtag': {
\r
137 'Meta': {'object_name': 'MarkedTag'},
\r
138 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
139 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
140 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
141 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
144 'Meta': {'object_name': 'Node'},
\r
145 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
146 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
147 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
148 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
149 'body': ('django.db.models.fields.TextField', [], {}),
\r
150 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
151 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
152 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
153 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
154 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
155 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
156 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
157 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
158 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
159 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
160 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
161 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
162 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
163 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
164 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
165 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
167 'forum.noderevision': {
\r
168 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
169 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
170 'body': ('django.db.models.fields.TextField', [], {}),
\r
171 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
172 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
173 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
174 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
175 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
176 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
177 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
179 'forum.openidassociation': {
\r
180 'Meta': {'object_name': 'OpenIdAssociation'},
\r
181 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
182 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
183 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
184 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
185 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
186 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
187 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
189 'forum.openidnonce': {
\r
190 'Meta': {'object_name': 'OpenIdNonce'},
\r
191 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
192 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
193 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
194 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
196 'forum.questionsubscription': {
\r
197 'Meta': {'object_name': 'QuestionSubscription'},
\r
198 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
199 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
200 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 28, 23, 49, 37, 322000)'}),
\r
201 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
202 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
204 'forum.subscriptionsettings': {
\r
205 'Meta': {'object_name': 'SubscriptionSettings'},
\r
206 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
207 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
208 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
209 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
210 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
211 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
212 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
213 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
214 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
215 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
216 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
217 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
218 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
219 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
220 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
221 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
222 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
223 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
226 'Meta': {'object_name': 'Tag', 'db_table': "u'tag'"},
\r
227 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
228 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
229 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
230 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
231 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
232 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
233 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
234 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
237 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
238 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
239 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
240 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
241 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
242 'email_key': ('django.db.models.fields.CharField', [], {'max_length': '32', 'null': 'True'}),
\r
243 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
244 'hide_ignored_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
245 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
246 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
247 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
248 'questions_per_page': ('django.db.models.fields.SmallIntegerField', [], {'default': '10'}),
\r
249 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
250 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
251 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
252 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}),
\r
253 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
254 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
256 'forum.validationhash': {
\r
257 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
258 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 4, 29, 23, 49, 37, 506000)'}),
\r
259 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
260 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
261 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
262 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
263 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
267 complete_apps = ['forum']
\r