Code Duplication    Length = 28-30 lines in 2 locations

database/migrations/2018_06_04_034433_create_file_link_instructions_table.php 1 location

@@ 7-34 (lines=28) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateFileLinkInstructionsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('file_link_instructions', function(Blueprint $table) {
17
            $table->increments('link_instructions_id');
18
            $table->integer('link_id')->unsigned();
19
            $table->longText('instruction')->nullable();
20
            $table->timestamps();
21
            $table->foreign('link_id')->references('link_id')->on('file_links')->onUpdate('cascade')->onDelete('cascade');
22
        });
23
    }
24
25
    /**
26
     * Reverse the migrations.
27
     *
28
     * @return void
29
     */
30
    public function down()
31
    {
32
        Schema::dropIfExists('file_link_instructions');
33
    }
34
}
35

database/migrations/2019_03_18_183838_create_jobs_table.php 1 location

@@ 7-36 (lines=30) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateJobsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('jobs', function(Blueprint $table) {
17
            $table->bigIncrements('id');
18
            $table->string('queue')->index();
19
            $table->longText('payload');
20
            $table->unsignedTinyInteger('attempts');
21
            $table->unsignedInteger('reserved_at')->nullable();
22
            $table->unsignedInteger('available_at');
23
            $table->unsignedInteger('created_at');
24
        });
25
    }
26
27
    /**
28
     * Reverse the migrations.
29
     *
30
     * @return void
31
     */
32
    public function down()
33
    {
34
        Schema::dropIfExists('jobs');
35
    }
36
}
37