index names may be specified on fluent setup.
This commit is contained in:
parent
4806bccbb6
commit
67696d8114
|
@ -40,8 +40,6 @@ public static function start($bundle)
|
||||||
throw new \Exception("Bundle [$bundle] has not been installed.");
|
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
|
// 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
|
// 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
|
// 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
|
// registering the bundle's routes. This is kept separate from the
|
||||||
// start script for reverse routing efficiency purposes.
|
// start script for reverse routing efficiency purposes.
|
||||||
static::routes($bundle);
|
static::routes($bundle);
|
||||||
|
|
||||||
|
static::$started[] = strtolower($bundle);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -29,6 +29,7 @@ public static function table($table, $callback)
|
||||||
*/
|
*/
|
||||||
public static function execute($table)
|
public static function execute($table)
|
||||||
{
|
{
|
||||||
|
die('here');
|
||||||
foreach ($table->commands as $command)
|
foreach ($table->commands as $command)
|
||||||
{
|
{
|
||||||
$connection = DB::connection($table->connection);
|
$connection = DB::connection($table->connection);
|
||||||
|
@ -82,9 +83,9 @@ protected static function implications($table)
|
||||||
{
|
{
|
||||||
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ class Fluent {
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $attributes = array();
|
public $attributes = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new fluent container instance.
|
* Create a new fluent container instance.
|
||||||
|
|
Loading…
Reference in New Issue