-
Notifications
You must be signed in to change notification settings - Fork 3
Migration
HonzaKral edited this page Dec 12, 2012
·
3 revisions
When migrating from ella-comments you need to:
Settings:
- change listing handlers to flatcomments variants
- add
ella_flatcomments
toINSTALLED_APPS
run migration:
>>> from ella_flatcomments.utils import migrate_legacy_comments
>>> migrate_legacy_comments()
remove django.contrib.comments
, threadedcomments
and ella_comments
from INSTALLED_APPS
note that for some DBs (postgres) you will need to reset the DB's sequence:
SELECT setval(pg_get_serial_sequence('ella_flatcomments_flatcomment', 'id'), (SELECT max(id) + 1 from ella_flatcomments_flatcomment));