Ticket: 766,767
This commit is contained in:
parent
fcfff27a76
commit
e381fdde41
@ -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';
|
||||
|
@ -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'),
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user