added key and session tasks.
This commit is contained in:
@@ -29,7 +29,6 @@ class Schema {
|
||||
*/
|
||||
public static function execute($table)
|
||||
{
|
||||
die('here');
|
||||
foreach ($table->commands as $command)
|
||||
{
|
||||
$connection = DB::connection($table->connection);
|
||||
|
||||
@@ -144,7 +144,7 @@ class MySQL extends Grammar {
|
||||
*/
|
||||
public function primary(Table $table, Fluent $command)
|
||||
{
|
||||
return $this->key($table, $command, 'PRIMARY KEY');
|
||||
return $this->key($table, $command->name(null), 'PRIMARY KEY');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -67,7 +67,7 @@ class Table {
|
||||
* @param string $name
|
||||
* @return Fluent
|
||||
*/
|
||||
public function primary($columns, $name)
|
||||
public function primary($columns, $name = null)
|
||||
{
|
||||
return $this->key(__FUNCTION__, $columns, $name);
|
||||
}
|
||||
@@ -148,7 +148,7 @@ class Table {
|
||||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
public function drop_primary($name)
|
||||
public function drop_primary($name = null)
|
||||
{
|
||||
return $this->drop_key(__FUNCTION__, $name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user