Skip to content

Commit

Permalink
Fixed the remaining schema tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Apr 12, 2014
1 parent 4b8e562 commit e32fcf4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Database/Schema/SqlserverSchema.php
Expand Up @@ -110,7 +110,7 @@ protected function _convertColumn($col, $length = null) {
}

if (strpos($col, 'varchar') !== false) {
return ['type' => 'string', 'length' => $length];
return ['type' => 'string', 'length' => $length ?: 255];
}

if (strpos($col, 'char') !== false) {
Expand Down Expand Up @@ -151,7 +151,6 @@ public function convertFieldDescription(Table $table, $row) {
'null' => $row['null'] === 'YES' ? true : false,
'default' => $row['default'],
];
$field['length'] = $row['char_length'] ?: $field['length'];
$table->addColumn($row['name'], $field);
}

Expand Down

0 comments on commit e32fcf4

Please sign in to comment.