You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Armin Waibel <ar...@apache.org> on 2008/05/16 16:50:11 UTC

Re: Database Update

Hi Hans,

Hans Novak wrote:
> Hi,
> 
> how can i update the Database, if i change my Java-sourcecode and with 
> that the database structure, without loosing any data.
> Until now i use the mysql command to import the SQL-Ascii File, created 
> from OJB with ant.
> But this deletes first all tables.

The upcoming version of OJB 1.0.5 use DdlUtils instead of Torque to 
generate the tables of the unit tests. DdlUtils supports alteration of 
tables - maybe this can help to solve your problem.

http://db.apache.org/ddlutils/documentation.html

regards,
Armin

> 
> Hans
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: Database Update

Posted by Hans Novak <hn...@repcom.de>.
Armin Waibel schrieb:
>
>>
>> how can i update the Database, if i change my Java-sourcecode and 
>> with that the database structure, without loosing any data.
>> Until now i use the mysql command to import the SQL-Ascii File, 
>> created from OJB with ant.
>> But this deletes first all tables.
>
> The upcoming version of OJB 1.0.5 use DdlUtils instead of Torque to 
> generate the tables of the unit tests. DdlUtils supports alteration of 
> tables - maybe this can help to solve your problem.
>
> http://db.apache.org/ddlutils/documentation.html

When will it released ?

Hans

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org