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