cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Grobmeier <grobme...@gmail.com>
Subject Foreign keys whe migrating
Date Fri, 18 Nov 2011 12:42:37 GMT
Hi all,

sometimes my Modelere throws an error when I alter my database,
because of foreign key restrictions.

To avoid this, one must do this:
SET foreign_key_checks =0;

and afterwards this:
SET foreign_key_checks =1;

(on a mysql) to make the migration a success.

I wonder if there are sometimes problems with other databases too and
if there is a chance to disable these checks before making the
moderler migrating the alter scripts.

Cheers
Christian

-- 
http://www.grobmeier.de

Mime
View raw message