1 from south.v2 import DataMigration
\r
2 from south.orm import FakeORM
\r
4 class Migration(DataMigration):
\r
6 def forwards(self, orm):
\r
11 def backwards(self, orm):
\r
12 "Write your backwards methods here."
\r
16 'Meta': {'object_name': 'Group'},
\r
17 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
18 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
\r
19 'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
\r
21 'auth.permission': {
\r
22 'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
\r
23 'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
24 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
\r
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
26 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
\r
29 'Meta': {'object_name': 'User'},
\r
30 'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
31 'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
\r
32 'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
\r
33 'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", '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']", 'blank': 'True'}),
\r
42 'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
\r
44 'contenttypes.contenttype': {
\r
45 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
\r
46 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
47 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
48 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
\r
49 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
\r
52 'Meta': {'object_name': 'Action'},
\r
53 'action_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
54 'action_type': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
55 'canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
56 'canceled_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True'}),
\r
57 'canceled_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'canceled_actions'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
58 'canceled_ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
59 'extra': ('forum.models.utils.PickledObjectField', [], {'null': 'True'}),
\r
60 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
61 'ip': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
62 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
63 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'actions'", 'to': "orm['forum.User']"})
\r
65 'forum.actionrepute': {
\r
66 'Meta': {'object_name': 'ActionRepute'},
\r
67 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.Action']"}),
\r
68 'by_canceled': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
69 'date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
70 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
71 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'reputes'", 'to': "orm['forum.User']"}),
\r
72 'value': ('django.db.models.fields.IntegerField', [], {'default': '0'})
\r
74 'forum.authkeyuserassociation': {
\r
75 'Meta': {'object_name': 'AuthKeyUserAssociation'},
\r
76 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
77 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
78 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
79 'provider': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
\r
80 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_keys'", 'to': "orm['forum.User']"})
\r
83 'Meta': {'unique_together': "(('user', 'badge', 'node'),)", 'object_name': 'Award'},
\r
84 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'award'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
85 'awarded_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
86 'badge': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Badge']"}),
\r
87 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
88 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
89 'trigger': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'awards'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
90 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
93 'Meta': {'object_name': 'Badge'},
\r
94 'awarded_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
95 'awarded_to': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'badges'", 'through': "'Award'", 'to': "orm['forum.User']"}),
\r
96 'cls': ('django.db.models.fields.CharField', [], {'max_length': '50', 'null': 'True'}),
\r
97 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
98 'type': ('django.db.models.fields.SmallIntegerField', [], {})
\r
101 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Flag'},
\r
102 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
103 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
104 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
105 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
106 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
107 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
109 'forum.keyvalue': {
\r
110 'Meta': {'object_name': 'KeyValue'},
\r
111 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
112 'key': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
113 'value': ('forum.models.utils.PickledObjectField', [], {'null': 'True'})
\r
115 'forum.markedtag': {
\r
116 'Meta': {'object_name': 'MarkedTag'},
\r
117 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
118 'reason': ('django.db.models.fields.CharField', [], {'max_length': '16'}),
\r
119 'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'user_selections'", 'to': "orm['forum.Tag']"}),
\r
120 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'tag_selections'", 'to': "orm['forum.User']"})
\r
123 'Meta': {'object_name': 'Node'},
\r
124 'abs_parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'all_children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
125 'active_revision': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'active'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.NodeRevision']"}),
\r
126 'added_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
127 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'nodes'", 'to': "orm['forum.User']"}),
\r
128 'body': ('django.db.models.fields.TextField', [], {}),
\r
129 'deleted': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'deleted_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
130 'extra_action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'extra_node'", 'null': 'True', 'to': "orm['forum.Action']"}),
\r
131 'extra_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
132 'extra_ref': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']", 'null': 'True'}),
\r
133 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
134 'in_moderation': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'moderated_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
135 'last_activity_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
136 'last_activity_by': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']", 'null': 'True'}),
\r
137 'last_edited': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'edited_node'", 'unique': 'True', 'null': 'True', 'to': "orm['forum.Action']"}),
\r
138 'marked': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
139 'node_type': ('django.db.models.fields.CharField', [], {'default': "'node'", 'max_length': '16'}),
\r
140 'parent': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'children'", 'null': 'True', 'to': "orm['forum.Node']"}),
\r
141 'score': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
\r
142 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
143 'tags': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'nodes'", 'to': "orm['forum.Tag']"}),
\r
144 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
145 'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'})
\r
147 'forum.noderevision': {
\r
148 'Meta': {'unique_together': "(('node', 'revision'),)", 'object_name': 'NodeRevision'},
\r
149 'author': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'noderevisions'", 'to': "orm['forum.User']"}),
\r
150 'body': ('django.db.models.fields.TextField', [], {}),
\r
151 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
152 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'revisions'", 'to': "orm['forum.Node']"}),
\r
153 'revised_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
154 'revision': ('django.db.models.fields.PositiveIntegerField', [], {}),
\r
155 'summary': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
156 'tagnames': ('django.db.models.fields.CharField', [], {'max_length': '125'}),
\r
157 'title': ('django.db.models.fields.CharField', [], {'max_length': '300'})
\r
159 'forum.openidassociation': {
\r
160 'Meta': {'object_name': 'OpenIdAssociation'},
\r
161 'assoc_type': ('django.db.models.fields.TextField', [], {'max_length': '64'}),
\r
162 'handle': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
\r
163 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
164 'issued': ('django.db.models.fields.IntegerField', [], {}),
\r
165 'lifetime': ('django.db.models.fields.IntegerField', [], {}),
\r
166 'secret': ('django.db.models.fields.TextField', [], {'max_length': '255'}),
\r
167 'server_url': ('django.db.models.fields.TextField', [], {'max_length': '2047'})
\r
169 'forum.openidnonce': {
\r
170 'Meta': {'object_name': 'OpenIdNonce'},
\r
171 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
172 'salt': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
\r
173 'server_url': ('django.db.models.fields.URLField', [], {'max_length': '200'}),
\r
174 'timestamp': ('django.db.models.fields.IntegerField', [], {})
\r
176 'forum.questionsubscription': {
\r
177 'Meta': {'object_name': 'QuestionSubscription'},
\r
178 'auto_subscription': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
179 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
180 'last_view': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 3, 11, 46, 22, 80000)'}),
\r
181 'question': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
182 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
184 'forum.subscriptionsettings': {
\r
185 'Meta': {'object_name': 'SubscriptionSettings'},
\r
186 'all_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
187 'all_questions_watched_tags': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
188 'enable_notifications': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
189 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
190 'member_joins': ('django.db.models.fields.CharField', [], {'default': "'n'", 'max_length': '1'}),
\r
191 'new_question': ('django.db.models.fields.CharField', [], {'default': "'d'", 'max_length': '1'}),
\r
192 'new_question_watched_tags': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
193 'notify_accepted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
194 'notify_answers': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
195 'notify_comments': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
196 'notify_comments_own_post': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
197 'notify_reply_to_comments': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
198 'questions_answered': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
199 'questions_asked': ('django.db.models.fields.BooleanField', [], {'default': 'True', 'blank': 'True'}),
\r
200 'questions_commented': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
201 'questions_viewed': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
202 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
203 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
206 'Meta': {'object_name': 'Tag'},
\r
207 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
208 'deleted': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
209 'deleted_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
\r
210 'deleted_by': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'deleted_tags'", 'null': 'True', 'to': "orm['forum.User']"}),
\r
211 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
212 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'through': "'MarkedTag'", 'to': "orm['forum.User']"}),
\r
213 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
214 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
217 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
218 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
219 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
220 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
221 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
222 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
223 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
224 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
225 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
226 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
227 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1'}),
\r
228 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
229 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'through': "'QuestionSubscription'", 'to': "orm['forum.Node']"}),
\r
230 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
231 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
233 'forum.validationhash': {
\r
234 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
235 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 4, 11, 46, 28, 428000)'}),
\r
236 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
237 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
238 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
239 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
240 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
243 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
\r
244 'action': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
245 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
246 'node': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.Node']"}),
\r
247 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"}),
\r
248 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
249 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
253 complete_apps = ['forum']
\r
255 orm = FakeORM(Migration, "forum")
\r