From f2e19fd9fa3341484da5d755f10a96c0e03927fa Mon Sep 17 00:00:00 2001 From: zYne Date: Sun, 4 Feb 2007 22:31:55 +0000 Subject: [PATCH] added 'int' as an alias for 'integer' --- lib/Doctrine/DataDict/Mysql.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/DataDict/Mysql.php b/lib/Doctrine/DataDict/Mysql.php index fdd336684..f7fa67c63 100644 --- a/lib/Doctrine/DataDict/Mysql.php +++ b/lib/Doctrine/DataDict/Mysql.php @@ -181,6 +181,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict } return 'LONGBLOB'; case 'integer': + case 'int': case 'enum': if (!empty($field['length'])) { $length = $field['length']; @@ -211,7 +212,7 @@ class Doctrine_DataDict_Mysql extends Doctrine_DataDict $length = !empty($field['length']) ? $field['length'] : 18; return 'DECIMAL(' . $length . ',' . 0 . ')'; //$this->dbh->options['decimal_places'] . ')'; } - return ''; + throw new Doctrine_DataDict_Exception('Unknown column type.'); } /** * Maps a native array description of a field to a MDB2 datatype and length