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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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


2072 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