Skip to content

Commit

Permalink
Show the column name when throwing excpetion if there is a missing se…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
c9s committed Apr 20, 2015
1 parent 82c1f4e commit 7214567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SQLBuilder/Universal/Syntax/AlterTableModifyColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function toSql(BaseDriver $driver, ArgumentArray $args)
if ($driver instanceof MySQLDriver) {
$sql = 'MODIFY COLUMN ';
if (!$this->column->getType()) {
throw new IncompleteSettingsException('Missing column type');
throw new IncompleteSettingsException('Missing column type on column `' . $this->column->name . '`');
}
$sql .= $this->column->buildDefinitionSqlForModify($driver, $args);

Expand Down

0 comments on commit 7214567

Please sign in to comment.