40 lines
793 B
PHP
40 lines
793 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
|
|
class CreateAbTaskLogTable extends Migration {
|
|
|
|
/**
|
|
* Run the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function up()
|
|
{
|
|
Schema::create('ab_task_log', function(Blueprint $table)
|
|
{
|
|
$table->bigInteger('id')->default(0);
|
|
$table->integer('site_id')->default(0);
|
|
$table->bigInteger('date_orig')->nullable();
|
|
$table->bigInteger('task_id')->default(0);
|
|
$table->boolean('result')->nullable();
|
|
$table->binary('message', 65535)->nullable();
|
|
$table->primary(['id','site_id','task_id']);
|
|
$table->index(['task_id','site_id'], 'fk_tl_task');
|
|
});
|
|
}
|
|
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function down()
|
|
{
|
|
Schema::drop('ab_task_log');
|
|
}
|
|
|
|
}
|