From b47381df1c4f27bbb1dbecaf1f0b94b01a34d355 Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 3 Apr 2007 21:19:24 +0000 Subject: [PATCH] --- lib/Doctrine/Export.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/Export.php b/lib/Doctrine/Export.php index 3e617c1dd..e15aaa929 100644 --- a/lib/Doctrine/Export.php +++ b/lib/Doctrine/Export.php @@ -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.');