Deploying custom modules that use ORM

Posted by Community Admin on 05-Aug-2018 22:36

Deploying custom modules that use ORM

All Replies

Posted by Community Admin on 23-Mar-2011 00:00

When developing a module that requires multiple tables for storing data (as I understand this right now, none of the data is 'extending' the Document class) can we completely generate these database tables using the ORM?

In other words, does the ORM support migrations/schema changes?

Thanks! 

PS. I'm new to Sitefinity and still evaluating...

Posted by Community Admin on 24-Mar-2011 00:00

Hi!

Thanks for the reply, from what I read the schema changes are not applied automatically when deploying a newer version of a custom Sitefinity module.

 you only need to execute it against the database and your migration will be done.

Does that mean that after deploying an updated Sitefinity module we also need to run queries against the database? 

Posted by Community Admin on 29-Mar-2011 00:00

Hello Michiel,

If you have changes to the database you should run scripts to update the schema. Each module has a method Upgrade

public override void Upgrade(SiteInitializer initializer, Version upgradeFrom)
       
       

where you can place a custom logic that checks for a module version and performs necessary updates to the database.

Kind regards,
Ivan Dimitrov
the Telerik team

Posted by Community Admin on 29-Mar-2011 00:00

Ok, I will have alook at that, thanks!

This thread is closed