upgrade path for medialibrary?

18 views
Skip to first unread message

Henning Hraban Ramm

unread,
May 31, 2012, 6:00:41 AM5/31/12
to django-...@googlegroups.com
Hi again,
while tinkering at my old sites, I wonder if there’s an easy upgrade
path from medialibrary to medialibrary.v2?
I find deprecation warnings a bit scary...

Greetlings, Hraban

Matthias Kestenholz

unread,
May 31, 2012, 6:13:55 AM5/31/12
to django-...@googlegroups.com
Hi Hraban

Sure --

The only difference is that the database column (and Django model field) `position` has been renamed to `type`. Just import the MediaFileContent from v2 instead of models, and create a South migration containing db.rename_column('page_page_mediafilecontent', 'position', 'type') in the forward migration. (Or run the equivalent SQL statements by hand.)
 

Matthias
Reply all
Reply to author
Forward
0 new messages