Re: MDB2 createTable / createConstraint question

From: Date: Thu, 22 Nov 2007 19:09:59 +0000
Subject: Re: MDB2 createTable / createConstraint question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-28204@lists.php.net to get a copy of this message
Mario Gzuk wrote:
I want to create a foreign key in mysql via createConstraint(). Foreign keys only work with ENGINE=INNODB in mysql. What is the correct way to use INNODB with createTable() in mysql?
$options = array('type' => 'innodb'); $db->manager->createTable($table, $fields, $options); HTH Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ________________________________________________________________________ Quipo Free Internet: sicuro e veloce senza costi di attivazione e senza canone, 2 e-mail da 25 Mb, 150 Mb di spazio web e molto di più! Registrati gratis: http://www.quipo.it

« previous php.pear.general (#28204) next »