Fix tasks to use proper cron syntax
This commit is contained in:
parent
51f4ea7d5d
commit
c1301c7190
5 changed files with 20 additions and 39 deletions
|
@ -15,15 +15,16 @@ class AddTasksTable extends Migration
|
|||
Schema::create('tasks', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->integer('server')->unsigned();
|
||||
$table->tinyInteger('active')->default(1);
|
||||
$table->string('action');
|
||||
$table->text('data');
|
||||
$table->tinyInteger('queued')->unsigned()->default(0);
|
||||
$table->integer('month')->default(0);
|
||||
$table->integer('week')->default(0);
|
||||
$table->integer('day')->default(0);
|
||||
$table->integer('hour')->default(0);
|
||||
$table->integer('minute')->default(0);
|
||||
$table->integer('second')->default(0);
|
||||
$table->string('year')->default('*');
|
||||
$table->string('day_of_week')->default('*');
|
||||
$table->string('month')->default('*');
|
||||
$table->string('day_of_month')->default('*');
|
||||
$table->string('hour')->default('*');
|
||||
$table->string('minute')->default('*');
|
||||
$table->timestamp('last_run');
|
||||
$table->timestamp('next_run');
|
||||
$table->timestamps();
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class AddActiveTaskOption extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('tasks', function (Blueprint $table) {
|
||||
$table->tinyInteger('active')->default(1)->after('server');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('tasks', function (Blueprint $table) {
|
||||
$table->dropColumn('active');
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue