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.

All other Modules /

Discuss all other Modules here.

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

Upgrading SS and newsletter module


Go to End


3 Posts   1548 Views

Avatar
mt

Community Member, 2 Posts

23 March 2015 at 10:55pm

Hi,
I started work on a old project which was based on SS 2.4. I am working on upgrade to SS 3.1, mostly it is done. At the moment I have a problem with newsletter module.

Old version of this module (0.5) had another architecture:
Instead MailingList was NewsletterType, and this model was related with "Group" model from framework. Groups contains and grouping "Members". It was simple relation.

Now MailingList model is related with new model "Recipient" and I have question that can I use old architecutre or I must clone all users from "Members" table to "Recipient" and move all "Groups" to "MailingList"? At the moment in my page are about 2000 users, and cloning all members to recipients and support both tables is more difficult than on old architecture..

If you don't understand me then tell me and I'll better explain.

Regards

Avatar
Willr

Forum Moderator, 5523 Posts

25 March 2015 at 11:59pm

Yes you will need to upgrade to the new architecture. Migration SQL has been provided if you need

https://github.com/silverstripe-labs/silverstripe-newsletter/blob/master/migration/0.5-to-1.0.sql

Avatar
mt

Community Member, 2 Posts

27 March 2015 at 1:09am

Oh, thank you for link to migation file, I didn't saw this.