Adds failed jobs table (from docs)

Allow closures to be passed to Form|ListController
Tidy up server detail payload
This commit is contained in:
Samuel Georges 2015-09-23 05:45:55 +10:00
parent ab4abb9bc5
commit 933ea641cc
4 changed files with 27 additions and 4 deletions

View File

@ -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()]);
});
}

View File

@ -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]);
});
}
}

View File

@ -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;
}

View File

@ -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');
}
}