summaryrefslogtreecommitdiffstats
path: root/askbot/migrations/0103_rename_post_fields_back_2.py
diff options
context:
space:
mode:
authorTomasz Zielinski <tomasz.zielinski@pyconsultant.eu>2012-01-06 16:55:47 +0100
committerTomasz Zielinski <tomasz.zielinski@pyconsultant.eu>2012-01-06 16:55:47 +0100
commitf303ea0f462e156d28fdc65f3c1b05b673da4ebe (patch)
tree8f4c8d9fd0b9cd1b1a09b421044cfff66e777b1d /askbot/migrations/0103_rename_post_fields_back_2.py
parent4853ee2714c0aecf2e4779214253839044128660 (diff)
downloadaskbot-f303ea0f462e156d28fdc65f3c1b05b673da4ebe.tar.gz
askbot-f303ea0f462e156d28fdc65f3c1b05b673da4ebe.tar.bz2
askbot-f303ea0f462e156d28fdc65f3c1b05b673da4ebe.zip
Upgraded migrations: code cleanup; they print now colored messages; added infrastructure for mapping old q/a/c URLs to the new, Post-based, ones
Diffstat (limited to 'askbot/migrations/0103_rename_post_fields_back_2.py')
-rw-r--r--askbot/migrations/0103_rename_post_fields_back_2.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/askbot/migrations/0103_rename_post_fields_back_2.py b/askbot/migrations/0103_rename_post_fields_back_2.py
index 87feb037..6640ff83 100644
--- a/askbot/migrations/0103_rename_post_fields_back_2.py
+++ b/askbot/migrations/0103_rename_post_fields_back_2.py
@@ -128,7 +128,12 @@ class Migration(SchemaMigration):
'vote_down_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'vote_up_count': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
'wiki': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'})
+ 'wikified_at': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
+
+ # "Post-processing" - added manually to add support for URL mapping
+ 'old_question_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': True, 'blank': True, 'default': None, 'unique': 'True'}),
+ 'old_answer_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': True, 'blank': True, 'default': None, 'unique': 'True'}),
+ 'old_comment_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': True, 'blank': True, 'default': None, 'unique': 'True'}),
},
'askbot.postrevision': {
'Meta': {'ordering': "('-revision',)", 'unique_together': "(('post', 'revision'),)", 'object_name': 'PostRevision'},