开发者

grails not generating foreign keys

开发者 https://www.devze.com 2023-03-13 06:55 出处:网络
I`m really confused here about this weird behavior! The thing is, I have a grails app which in my local machine it is creating all FK in my MYSQL db.

I`m really confused here about this weird behavior! The thing is, I have a grails app which in my local machine it is creating all FK in my MYSQL db.

But when I try running it in another machines the FK are not being created!

开发者_开发百科

Some reason for that? some permission problem? is there any way to debug the creation of the grails tables so I can figure this out?

thanks!


Your database is probably using ENGINE = MyISAM, which will cause foreign keys to not be created.

Try changing your engine to InnoDB.

0

精彩评论

暂无评论...
验证码 换一张
取 消