First Upload
This commit is contained in:
42
database/migrations/2019_07_29_062256_create_tasks_table.php
Normal file
42
database/migrations/2019_07_29_062256_create_tasks_table.php
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
class CreateTasksTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('tasks', function (Blueprint $table) {
|
||||
$table->integer('id', true);
|
||||
$table->string('task_name')->nullable();
|
||||
$table->string('task_desc')->nullable();
|
||||
$table->string('task_command')->nullable();
|
||||
$table->integer('task_categories')->nullable();
|
||||
$table->integer('task_devices')->nullable();
|
||||
$table->integer('task_tags')->nullable();
|
||||
$table->integer('task_snippet')->nullable();
|
||||
$table->string('task_cron')->nullable();
|
||||
$table->integer('task_email_notify')->nullable();
|
||||
$table->integer('download_report_notify')->nullable();
|
||||
$table->integer('verbose_download_report_notify')->nullable();
|
||||
$table->integer('is_system')->nullable()->default(0);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::drop('tasks');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user