1
0
mirror of synced 2025-01-17 22:11:41 +03:00

Ticket: 766,767

This commit is contained in:
RQuadling 2008-02-01 16:15:34 +00:00
parent fcfff27a76
commit e381fdde41
2 changed files with 4 additions and 1 deletions

View File

@ -159,8 +159,11 @@ class Doctrine_DataDict_Mssql extends Doctrine_DataDict
break;
case 'text':
case 'varchar':
case 'ntext':
case 'nvarchar':
$fixed = false;
case 'char':
case 'nchar':
$type[0] = 'string';
if ($length == '1') {
$type[] = 'boolean';

View File

@ -85,7 +85,7 @@ class Doctrine_Import_Mssql extends Doctrine_Import
'length' => $decl['length'],
'fixed' => $decl['fixed'],
'unsigned' => $decl['unsigned'],
'notnull' => (bool) ($val['is_nullable'] === 'NO'),
'notnull' => (bool) (trim($val['is_nullable']) === 'NO'),
'default' => $val['column_def'],
'primary' => (strtolower($identity) == 'identity'),
);