for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Arcanedev\LaravelTracker\Bases\Migration;
use Illuminate\Database\Schema\Blueprint;
/**
* Class CreateTrackerPathsTable
*
* @author ARCANEDEV <[email protected]>
*/
class CreateTrackerPathsTable extends Migration
{
/* ------------------------------------------------------------------------------------------------
| Properties
| ------------------------------------------------------------------------------------------------
* The table name.
* @var string
protected $table = 'paths';
| Main Functions
* Migrate to database.
public function up()
$this->createSchema(function (Blueprint $table) {
$table->bigIncrements('id');
$table->string('path')->index();
$table->timestamp('created_at')->index();
$table->timestamp('updated_at')->index();
});
}