database fix after horizon

This commit is contained in:
2019-09-29 00:50:44 -05:00
parent ab6e0b5177
commit d2b6476165
3 changed files with 14 additions and 9 deletions

View File

@@ -26,6 +26,9 @@ class Kernel extends ConsoleKernel
{
// $schedule->command('inspire')
// ->hourly();
//Horizon Graph Schedule
$schedule->command('horizon:snapshot')->everyFiveMinutes();
}
/**

View File

@@ -26,7 +26,7 @@ return [
|
*/
'path' => 'horizon',
'path' => 'uhorizon',
/*
|--------------------------------------------------------------------------

View File

@@ -13,14 +13,16 @@ class CreateFailedJobsTable extends Migration
*/
public function up()
{
Schema::create('failed_jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
if(!Schema::hasTable('failed_jobs')) {
Schema::create('failed_jobs', function (Blueprint $table) {
$table->bigIncrements('id');
$table->text('connection');
$table->text('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
});
}
}
/**