code quality and backreference support in controllers.
This commit is contained in:
@@ -30,7 +30,11 @@ abstract class Grammar {
|
||||
{
|
||||
$segments = explode(' ', $value);
|
||||
|
||||
return $this->wrap($segments[0]).' AS '.$this->wrap($segments[2]);
|
||||
return sprintf(
|
||||
'%s AS %s',
|
||||
$this->wrap($segments[0]),
|
||||
$this->wrap($segments[2])
|
||||
);
|
||||
}
|
||||
|
||||
// Since columns may be prefixed with their corresponding table
|
||||
|
||||
@@ -75,9 +75,8 @@ class Schema {
|
||||
}
|
||||
|
||||
// For some extra syntax sugar, we'll check for any implicit
|
||||
// indexes on the table. The developer may specify the index
|
||||
// type on the fluent column declaration. Here we'll find
|
||||
// any implicit indexes and add the commands.
|
||||
// indexes on the table since the developer may specify the
|
||||
// index type on the fluent column declaration.
|
||||
foreach ($table->columns as $column)
|
||||
{
|
||||
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
||||
|
||||
Reference in New Issue
Block a user