+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How do you force OA to update the DB in a custom module?

How do you force OA to update the DB in a custom module?

5 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    08 May 2014
    Link to this post

    I have a thunder generated custom module in which I need to add a couple more columns to the DB.

     So I created them in the model, added them to the fluent mapping (HasProperty)...but no amount of uninstall\install seems to get these columns added to the DB?

    Steve

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    08 May 2014 in reply to Steve
    Link to this post

    ...man even an uninstall and reinstall isn't even adding the table to the db

  3. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    13 May 2014
    Link to this post
    Hi Steve,

    After the module has been initially created and installed and you change something like the type for example, you need to perform the following in order to make it refresh and change mappings etc:Developing a Custom module using an OpenAccess data provider.

    I hope this helps.

    Regards,
    Atanas Valchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  4. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    13 May 2014 in reply to Atanas Valchev
    Link to this post

    What? Ewww...

     This can't be how you guys do it internally if you need to change a schema...is it?

  5. Atanas Valchev
    Atanas Valchev avatar
    414 posts
    Registered:
    04 Jan 2016
    16 May 2014
    Link to this post
    Hi,

    The upgrade is done by checking the assembly version and the schema version in the database. When the assembly has a higher version the upgrade will trigger.

    Regards,
    Atanas Valchev
    Telerik
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
5 posts, 0 answered