index names may be specified on fluent setup.

This commit is contained in:
Taylor Otwell 2012-01-24 08:43:12 -06:00
parent 4806bccbb6
commit 67696d8114
3 changed files with 6 additions and 5 deletions

View File

@ -40,8 +40,6 @@ public static function start($bundle)
throw new \Exception("Bundle [$bundle] has not been installed.");
}
static::$started[] = strtolower($bundle);
// Each bundle may have a "start" script which is responsible for preparing
// the bundle for use by the application. The start script may register any
// classes the bundle uses with the auto-loader, or perhaps will start any
@ -55,6 +53,8 @@ public static function start($bundle)
// registering the bundle's routes. This is kept separate from the
// start script for reverse routing efficiency purposes.
static::routes($bundle);
static::$started[] = strtolower($bundle);
}
/**

View File

@ -29,6 +29,7 @@ public static function table($table, $callback)
*/
public static function execute($table)
{
die('here');
foreach ($table->commands as $command)
{
$connection = DB::connection($table->connection);
@ -82,9 +83,9 @@ protected static function implications($table)
{
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
{
if ($column->$key === true)
if (isset($column->attributes[$key]))
{
$table->$key($column->name);
$table->$key($column->name, $column->$key);
}
}
}

View File

@ -7,7 +7,7 @@ class Fluent {
*
* @var array
*/
protected $attributes = array();
public $attributes = array();
/**
* Create a new fluent container instance.