-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Delta DDL generation
PostPosted: Tue Oct 28, 2008 12:49 pm 
Newbie

Joined: Tue Oct 28, 2008 11:43 am
Posts: 1
Hi.

We are working with Hibernate and have come to a point where we need to plan for production and future releases. In our development environment we auto-generate the tables but this won't be done in production environment (as recommended). Generating DDL's from hibernate is no problem, but what struck us was that it will be difficult to maintain in the future.

For example, after the first release the developers will start to develop next release. Add columns, drop columns etc until the next release is finished. Then, sure, it is easy enough to generate e new DDL. But we don't really need a new DDL, we need the delta between last DDL and the DDL, as a series of ALTER statements, or something similar. What we have found is:

Hbm2ddl.update:
Code:
Try and create an update script representing the "delta" between what is in the database and what the mappings specify. Ignores create/update attributes. (Do *not* use against production databases....


So, this is close not really what we want. We don't want to run it against a database (in development environment, the database has already been auto updated), but a previous DDL. Is there any tools that can handle this?

Regards,
Magnus


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.