Search   

Sunday, February 05, 2012

Support » Support Forum

Register  Login

 Menu  
 
    

 Welcome!  
 


Welcome to the NDO support forum!

kreis.gif Please register/login at the site if you want to post a thread. We sometimes copy support mails of common interest to the forum. They appear with anonymous sender.
kreis.gif Please post your messages in English language if possible. You can do your posts also in German, we will translate your post and our answer so that all users of the forum can read your posts.
kreis.gif The forum software requires that javascript is enabled.
kreis.gif Please do not insert licence information or licence keys in forum posts.
kreis.gif If you know a good answer to a post of another user, feel free to reply!
kreis.gif The forum is monitored. We reserve the right to remove posts we consider not to be useful for other forum users.

   Print   

      
 NDO Support Forum  
 
SearchForum Home
  NDO-Forum postings in english please, if possible.  Developing with NDO  How to avoid re...
 How to avoid rebuilding the database?
 
 7/11/2007 11:05:57 AM
cbreum
4 posts


How to avoid rebuilding the database?

Hi,

 

When adding new persistent classes or updating fields in existing classes how do I avoid rebuilding the existing database? In a production environment you would not want to delete data just because new tables are added.

 

Is it possible just to update the database schema from the “object model”?

 

 

It seems like the only option available is to call BuildDatabase on the PersistenceManager.

 

 7/16/2007 8:41:04 AM
Mirko
109 posts
5th


Re: How to avoid rebuilding the database?

Hi,

have a look at the <assemblyname>.ndodiff.x.y.sql files. These contain difference scripts. The x.y will be replaced by the schema version string, you enter in the NDO configuration dialog. That way you can produce an own difference script for each version of your software.

Note, that difference scripts have some limitations. There is no way for NDO to detect the renaming of classes and fields. In this situations you might have to edit the differece scripts by hand.

Best Regards:
Mirko

 

  NDO-Forum postings in english please, if possible.  Developing with NDO  How to avoid re...
  SearchSearch  Forum HomeForum Home