Path: blob/1.0-develop/database/migrations/2016_02_27_163411_add_tasks_table.php
7460 views
<?php12use Illuminate\Support\Facades\Schema;3use Illuminate\Database\Schema\Blueprint;4use Illuminate\Database\Migrations\Migration;56class AddTasksTable extends Migration7{8/**9* Run the migrations.10*/11public function up(): void12{13Schema::create('tasks', function (Blueprint $table) {14$table->increments('id');15$table->integer('server')->unsigned();16$table->tinyInteger('active')->default(1);17$table->string('action');18$table->text('data');19$table->tinyInteger('queued')->unsigned()->default(0);20$table->string('year')->default('*');21$table->string('day_of_week')->default('*');22$table->string('month')->default('*');23$table->string('day_of_month')->default('*');24$table->string('hour')->default('*');25$table->string('minute')->default('*');26$table->timestamp('last_run')->nullable();27$table->timestamp('next_run')->nullable();28$table->timestamps();29});30}3132/**33* Reverse the migrations.34*/35public function down(): void36{37Schema::drop('tasks');38}39}404142