Adds failed jobs table (from docs)
Allow closures to be passed to Form|ListController Tidy up server detail payload
This commit is contained in:
parent
ab4abb9bc5
commit
933ea641cc
|
|
@ -693,7 +693,7 @@ class FormController extends ControllerBehavior
|
|||
if (!is_a($widget->getController(), $calledClass)) {
|
||||
return;
|
||||
}
|
||||
$callback($widget, $widget->model, $widget->getContext());
|
||||
call_user_func_array($callback, [$widget, $widget->model, $widget->getContext()]);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -411,7 +411,7 @@ class ListController extends ControllerBehavior
|
|||
if (!is_a($widget->getController(), $calledClass)) {
|
||||
return;
|
||||
}
|
||||
$callback($widget, $widget->model);
|
||||
call_user_func_array($callback, [$widget, $widget->model]);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -836,8 +836,7 @@ class UpdateManager
|
|||
*/
|
||||
protected function applyHttpAttributes($http, $postData)
|
||||
{
|
||||
$postData['url'] = base64_encode(URL::to('/'));
|
||||
$postData['server'] = base64_encode(serialize(['php' => PHP_VERSION]));
|
||||
$postData['server'] = base64_encode(serialize(['php' => PHP_VERSION, 'url' => URL::to('/')]));
|
||||
if (Config::get('cms.edgeUpdates', false)) {
|
||||
$postData['edge'] = 1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class DbFailedJobs extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create('failed_jobs', function (Blueprint $table) {
|
||||
$table->engine = 'InnoDB';
|
||||
$table->increments('id');
|
||||
$table->text('connection');
|
||||
$table->text('queue');
|
||||
$table->text('payload');
|
||||
$table->timestamp('failed_at');
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('failed_jobs');
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue