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']", 'symmetrical': 'False', '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']", 'symmetrical': 'False', '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']", 'symmetrical': 'False', '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.OneToOneField', [], {'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', [], {'related_name': "'awards'", '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'", 'symmetrical': 'False', 'through': "orm['forum.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.OneToOneField', [], {'related_name': "'flag'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
103 'flagged_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
104 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
105 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.Node']"}),
\r
106 'reason': ('django.db.models.fields.CharField', [], {'max_length': '300'}),
\r
107 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'flags'", 'to': "orm['forum.User']"})
\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 '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.ForeignKey', [], {'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, 5, 25, 0, 18, 31, 631000)'}),
\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 'subscribed_questions': ('django.db.models.fields.CharField', [], {'default': "'i'", 'max_length': '1'}),
\r
207 'user': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'subscription_settings'", 'unique': 'True', 'to': "orm['forum.User']"})
\r
210 'Meta': {'object_name': 'Tag'},
\r
211 'created_by': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'created_tags'", 'to': "orm['forum.User']"}),
\r
212 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
213 'marked_by': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'marked_tags'", 'symmetrical': 'False', 'through': "orm['forum.MarkedTag']", 'to': "orm['forum.User']"}),
\r
214 'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
215 'used_count': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
\r
218 'Meta': {'object_name': 'User', '_ormbases': ['auth.User']},
\r
219 'about': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
\r
220 'bronze': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
221 'date_of_birth': ('django.db.models.fields.DateField', [], {'null': 'True', 'blank': 'True'}),
\r
222 'email_isvalid': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
223 'gold': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
224 'is_approved': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}),
\r
225 'last_seen': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
\r
226 'location': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
227 'real_name': ('django.db.models.fields.CharField', [], {'max_length': '100', 'blank': 'True'}),
\r
228 'reputation': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
229 'silver': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
\r
230 'subscriptions': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'subscribers'", 'symmetrical': 'False', 'through': "orm['forum.QuestionSubscription']", 'to': "orm['forum.Node']"}),
\r
231 'user_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['auth.User']", 'unique': 'True', 'primary_key': 'True'}),
\r
232 'website': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'})
\r
234 'forum.validationhash': {
\r
235 'Meta': {'unique_together': "(('user', 'type'),)", 'object_name': 'ValidationHash'},
\r
236 'expiration': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2010, 5, 26, 0, 18, 31, 914000)'}),
\r
237 'hash_code': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'}),
\r
238 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
239 'seed': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
240 'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}),
\r
241 'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['forum.User']"})
\r
244 'Meta': {'unique_together': "(('user', 'node'),)", 'object_name': 'Vote'},
\r
245 'action': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "'vote'", 'unique': 'True', 'to': "orm['forum.Action']"}),
\r
246 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
\r
247 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.Node']"}),
\r
248 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'votes'", 'to': "orm['forum.User']"}),
\r
249 'value': ('django.db.models.fields.SmallIntegerField', [], {}),
\r
250 'voted_at': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
\r
254 complete_apps = ['forum']
\r
256 orm = FakeORM(Migration, "forum")
\r