-->
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: MySQL drop foreign key with hbm2ddl
PostPosted: Fri Oct 15, 2004 6:28 pm 
Newbie

Joined: Fri Oct 15, 2004 6:01 pm
Posts: 2
Greetings,
The generated DDL can't drop the tables because of the foreign keys.

I think the
Code:
alter table TILE drop constraint FK274AAE90C0136F;

comand should be:
Code:
alter table TILE drop foreign key FK274AAE90C0136F;


It works manually anyway.

I tried changing the order of my mapping files, in the hibernate.cfg.xml, in an attemp to drop them in a different order but the order stayed the same.

Thanks in advance for any ideas.

Bill



Hibernate version:2.1


Name and version of the database you are using:MySQL 4.0.21

The generated SQL (show_sql=true):
alter table TILE drop constraint FK274AAE90C0136F;
alter table ENZYMATIC_CYCLE drop constraint FK23DB13F9DC6CFC4C;
alter table BASE drop constraint FK1EFED13EC385C;
drop table if exists RUN;
drop table if exists TILE;
drop table if exists ENZYMATIC_CYCLE;
drop table if exists BASE;


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.