Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Migrating a Site to Silverstripe /

What you need to know when migrating your existing site to SilverStripe.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Merge silverstripe databases


Go to End


846 Views

Avatar
Dunatron

Community Member, 4 Posts

27 June 2016 at 2:49pm

Edited: 27/06/2016 2:51pm

Hi guys, I am merging two silverstripe databases, which has gone smoothly except for the Content fields.
The content fields have special characters like maori macrons.
In the database I am importing they are all fine and macron looking, but when I try and import these pages into the new database the macrons look like this

M?ri

I then did all the content manually but they needed to have links etc updated in the content hence the update below.
DB::query('UPDATE ' . $name . ' SET ' . $field . '=\'' . $content . '\' where ID = ' . $page->ID);

Silverstripe is mutating this content before it puts it back?. Ay help here would be appreciated