for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTicketUploadsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
Schema::create(config('laravel-tickets.database.ticket-uploads-table'), function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('ticket_message_id');
$table->string('path');
$table->timestamps();
if (! config('laravel-tickets.models.uuid')) {
$table->foreign('ticket_message_id')
->on(config('laravel-tickets.database.ticket-messages-table'))->references('id');
}
});
* Reverse the migrations.
public function down()
Schema::dropIfExists(config('laravel-tickets.database.ticket-uploads-table'));