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']",
\r
18 'symmetrical': 'False', 'blank': 'True'})
\r
20 'auth.permission': {
\r
21 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
22 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
23 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
25 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
28 'Meta': {'object_name': 'User'},
\r
29 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
30 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
31 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
32 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False'
\r
33 , 'blank': 'True'}),
\r
34 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
35 'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
36 'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
37 'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
38 'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
39 'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
40 'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
\r
41 'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']",
\r
42 'symmetrical': 'False', 'blank': 'True'
\r
44 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
46 'contenttypes.contenttype': {
\r
47 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType',
\r
48 'db_table': "'django_content_type'"},
\r
49 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
50 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
51 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
52 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
55 'Meta': {'object_name': 'Action'},
\r
56 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
57 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
58 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
59 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
60 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'",
\r
61 'null': 'True', 'to': "orm['forum.User']"}),
\r
62 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
63 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
64 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
65 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
66 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True',
\r
67 'to': "orm['forum.Node']"}),
\r
68 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
70 'forum.actionrepute': {
\r
71 'Meta': {'object_name': 'ActionRepute'},
\r
72 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'",
\r
73 'to': "orm['forum.Action']"}),
\r
74 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
75 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
76 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
77 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"})
\r
79 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
81 'forum.authkeyuserassociation': {
\r
82 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
83 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
84 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
85 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
86 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
87 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"
\r
91 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
\r
92 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'award'", 'unique': 'True',
\r
93 'to': "orm['forum.Action']"}),
\r
94 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
95 'badge': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'to': "orm['forum.Badge']"
\r
97 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
98 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
99 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True',
\r
100 'to': "orm['forum.Action']"}),
\r
101 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
104 'Meta': {'object_name': 'Badge'},
\r
105 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
106 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'",
\r
107 'symmetrical': 'False',
\r
108 'through': "orm['forum.Award']",
\r
109 'to': "orm['forum.User']"}),
\r
110 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
\r
111 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
112 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
115 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
\r
116 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True',
\r
117 'to': "orm['forum.Action']"}),
\r
118 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
119 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
120 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}),
\r
121 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
122 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"})
\r
124 'forum.keyvalue': {
\r
125 'Meta': {'object_name': 'KeyValue'},
\r
126 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
127 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
128 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
130 'forum.markedtag': {
\r
131 'Meta': {'object_name': 'MarkedTag'},
\r
132 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
133 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
134 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'",
\r
135 'to': "orm['forum.Tag']"}),
\r
136 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'",
\r
137 'to': "orm['forum.User']"})
\r
140 'Meta': {'object_name': 'Node'},
\r
141 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True',
\r
142 'to': "orm['forum.Node']"}),
\r
143 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'",
\r
144 'unique': 'True', 'null': 'True',
\r
145 'to': "orm['forum.NodeRevision']"}),
\r
146 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
147 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"})
\r
149 'body': ('django.db.models.fields.TextField', [], {}),
\r
150 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
151 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
152 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
153 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
154 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
155 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
156 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True'
\r
157 , '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',
\r
161 'to': "orm['forum.Node']"}),
\r
162 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
163 'state_string': ('django.db.models.fields.TextField', [], {'default': "''"}),
\r
164 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
165 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'symmetrical': 'False',
\r
166 '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'",
\r
172 'to': "orm['forum.User']"}),
\r
173 'body': ('django.db.models.fields.TextField', [], {}),
\r
174 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
175 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"
\r
177 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
178 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
179 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
180 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
181 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
183 'forum.nodestate': {
\r
184 'Meta': {'unique_together': "(('node', 'state_type'),)", 'object_name': 'NodeState'},
\r
185 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'node_state'", 'unique': 'True',
\r
186 'to': "orm['forum.Action']"}),
\r
187 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
188 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'states'", 'to': "orm['forum.Node']"}),
\r
189 'state_type': ('django.db.models.fields.CharField', [], {'max_length': '16'})
\r
191 'forum.openidassociation': {
\r
192 'Meta': {'object_name': 'OpenIdAssociation'},
\r
193 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
194 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
195 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
196 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
197 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
198 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
199 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
201 'forum.openidnonce': {
\r
202 'Meta': {'object_name': 'OpenIdNonce'},
\r
203 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
204 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
205 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
206 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
208 'forum.questionsubscription': {
\r
209 'Meta': {'object_name': 'QuestionSubscription'},
\r
210 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
211 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
212 'last_view': ('django.db.models.fields.DateTimeField', [], {
\r
213 'default': 'datetime.datetime(2010, 6, 4, 12, 12, 32, 595305)'}),
\r
214 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
215 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
217 'forum.subscriptionsettings': {
\r
218 'Meta': {'object_name': 'SubscriptionSettings'},
\r
219 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
220 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
221 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
222 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
223 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
224 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
225 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
226 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
227 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
228 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
229 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
230 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
231 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
232 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
233 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
234 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
235 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
236 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'",
\r
237 'unique': 'True', 'to': "orm['forum.User']"})
\r
240 'Meta': {'object_name': 'Tag'},
\r
241 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'",
\r
242 'to': "orm['forum.User']"}),
\r
243 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
244 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'",
\r
245 'symmetrical': 'False',
\r
246 'through': "orm['forum.MarkedTag']",
\r
247 'to': "orm['forum.User']"}),
\r
248 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
249 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
252 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
253 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
254 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
255 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
256 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
257 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
258 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
259 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
260 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
261 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
262 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
263 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
264 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'",
\r
265 'symmetrical': 'False',
\r
266 'through': "orm['forum.QuestionSubscription']"
\r
267 , 'to': "orm['forum.Node']"}),
\r
268 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True',
\r
269 'primary_key': 'True'}),
\r
270 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
272 'forum.validationhash': {
\r
273 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
274 'expiration': ('django.db.models.fields.DateTimeField', [], {
\r
275 'default': 'datetime.datetime(2010, 6, 5, 12, 12, 32, 734979)'}),
\r
276 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
277 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
278 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
279 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
280 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
283 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
\r
284 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True',
\r
285 'to': "orm['forum.Action']"}),
\r
286 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
287 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}),
\r
288 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
289 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
290 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
294 complete_apps = ['forum']
\r
296 orm = FakeORM(Migration, "forum")
\r