1 from south.v2 import DataMigration
\r
2 from south.orm import FakeORM
\r
4 class Migration(DataMigration):
\r
5 def forwards(self, orm):
\r
9 def backwards(self, orm):
\r
10 "Write your backwards methods here."
\r
14 'Meta': {'object_name': 'Group'},
\r
15 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
16 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
17 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
\r
19 'auth.permission': {
\r
20 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
21 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
22 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
23 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
24 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
27 'Meta': {'object_name': 'User'},
\r
28 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
29 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
30 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
31 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
\r
32 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
33 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
34 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
35 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
36 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
37 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
38 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
39 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
\r
40 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
42 'contenttypes.contenttype': {
\r
43 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
44 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
46 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
47 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
50 'Meta': {'object_name': 'Action'},
\r
51 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
52 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
53 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
54 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
55 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
56 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
57 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
58 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
59 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
60 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
61 'real_user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'proxied_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
62 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
64 'forum.actionrepute': {
\r
65 'Meta': {'object_name': 'ActionRepute'},
\r
66 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
67 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
68 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
69 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
70 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
71 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
73 'forum.authkeyuserassociation': {
\r
74 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
75 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
76 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
77 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
78 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
79 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
82 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
\r
83 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
84 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
85 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"}),
\r
86 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
87 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
88 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
89 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
92 'Meta': {'object_name': 'Badge'},
\r
93 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
94 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'symmetrical': 'False', 'through': "orm['forum.Award']", 'to': "orm['forum.User']"}),
\r
95 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
\r
96 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
97 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
100 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
\r
101 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
102 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
103 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
104 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}),
\r
105 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
106 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"})
\r
108 'forum.keyvalue': {
\r
109 'Meta': {'object_name': 'KeyValue'},
\r
110 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
111 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
112 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
114 'forum.markedtag': {
\r
115 'Meta': {'object_name': 'MarkedTag'},
\r
116 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
117 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
118 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
119 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
122 'Meta': {'object_name': 'Node'},
\r
123 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
124 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
125 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
126 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
127 'body': ('django.db.models.fields.TextField', [], {}),
\r
128 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
129 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
130 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
131 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
132 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
133 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
134 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
135 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
136 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
137 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
138 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
139 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}),
\r
140 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
141 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False', 'to': "orm['forum.Tag']"}),
\r
142 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
144 'forum.noderevision': {
\r
145 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
146 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
147 'body': ('django.db.models.fields.TextField', [], {}),
\r
148 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
149 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
150 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
151 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
152 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
153 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
154 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
156 'forum.nodestate': {
\r
157 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'},
\r
158 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
159 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
160 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}),
\r
161 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
\r
163 'forum.openidassociation': {
\r
164 'Meta': {'object_name': 'OpenIdAssociation'},
\r
165 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
166 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
167 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
168 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
169 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
170 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
171 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
173 'forum.openidnonce': {
\r
174 'Meta': {'object_name': 'OpenIdNonce'},
\r
175 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
176 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
177 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
178 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
180 'forum.questionsubscription': {
\r
181 'Meta': {'object_name': 'QuestionSubscription'},
\r
182 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
183 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
184 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 1, 13, 6, 46, 789996)'}),
\r
185 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
186 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
188 'forum.subscriptionsettings': {
\r
189 'Meta': {'object_name': 'SubscriptionSettings'},
\r
190 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
191 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
192 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
193 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
194 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
195 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
196 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
197 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
198 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
199 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
200 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
201 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
202 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
203 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
204 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
205 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
206 'send_digest': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
207 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
208 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
211 'Meta': {'object_name': 'Tag'},
\r
212 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
213 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
214 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}),
\r
215 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
216 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
219 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
220 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
221 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
222 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
223 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
224 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
225 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
226 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
227 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
228 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
229 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
230 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
231 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}),
\r
232 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
233 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
235 'forum.userproperty': {
\r
236 'Meta': {'unique_together': "(('user', 'key'),)", 'object_name': 'UserProperty'},
\r
237 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
238 'key': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
239 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'properties'", 'to': "orm['forum.User']"}),
\r
240 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
242 'forum.validationhash': {
\r
243 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
244 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 7, 2, 13, 6, 46, 883626)'}),
\r
245 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
246 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
247 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
248 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
249 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
252 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
\r
253 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
254 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
255 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}),
\r
256 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
257 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
258 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
262 complete_apps = ['forum']
\r
264 orm = FakeORM(Migration, "forum")
\r