pyrocms/pyrocms — Issue #971: Blog Migration v2.0 dev - Show old data
Author: ekoisa
Created: 2011-12-06 11:40:19+00:00
State: open

Currently i'm doing migration from v1.3.2 to v2.0 develop.
I found old blog data not show after migration,
I try to find where problem happen then it seems in blog_m (model)

in function get_all :
->join('profiles', 'profiles.user_id = blog.author_id');

then i try to change the code to
->join('profiles', 'profiles.user_id = blog.author_id', 'left');

now it's work. The old data appear in the list. ^_^