mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-18 22:33:44 +02:00
Fix tasks to use proper cron syntax
This commit is contained in:
@@ -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');
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user