Commit b47381df authored by zYne's avatar zYne

--no commit message

--no commit message
parent 4676d8f4
......@@ -678,13 +678,15 @@ class Doctrine_Export extends Doctrine_Connection_Module
$keyword = ($v == 'onUpdate') ? ' ON UPDATE ' : ' ON DELETE ';
if (isset($definition[$v])) {
switch ($definition[$v]) {
$upper = strtoupper($definition[$v]);
switch ($upper) {
case 'CASCADE':
case 'SET NULL':
case 'NO ACTION':
case 'RESTRICT':
case 'SET DEFAULT':
$sql .= $keyword . $definition[$v];
$sql .= $keyword . $upper;
break;
default:
throw new Doctrine_Export_Exception('Unknown foreign key referential action option given.');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment