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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Database migrations


Go to End


2 Posts   1036 Views

Avatar
zard

Community Member, 25 Posts

25 July 2014 at 11:25pm

Hi,

Coming from Django world, I do like the simplicity of automated schema generation and maintenance.

However, I can imagine that slightly more complex projects would need a bit more flexibility.

How can one go about changing the database and migrating the current data? For example, if we want to change an existing ENUM, how do we use a mapping function to convert the old to the new format?

Is there any way to tap into the schema generation code and perform anything custom or is SilverStripe simply not intended for more complex projects?

Avatar
Willr

Forum Moderator, 5523 Posts

26 July 2014 at 11:11pm

Nothing is built in for those complex style migrations of content. There has been a developer discussion about implementing better migrations in the next major release (https://groups.google.com/forum/#!topic/silverstripe-dev/niQhqfK-h44, Django even gets referenced :))

It's something that would require someone to 'own' the development of. If you have experience in that area and the need, would be great to get a plan of attack together.