Code Duplication    Length = 30-31 lines in 2 locations

src/database/migrations/2018_02_07_084934_create_sktms_table.php 1 location

@@ 6-35 (lines=30) @@
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateSktmsTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13
	public function up()
14
	{
15
		Schema::create('sktms', function(Blueprint $table) {
16
			$table->increments('id');
17
			$table->integer('user_id');
18
			$table->integer('master_sktm_id');
19
			$table->integer('nomor_un');
20
			$table->string('nama_lomba', 255)->nullable();
21
			$table->timestamps();
22
			$table->softDeletes();
23
		});
24
	}
25
26
    /**
27
     * Reverse the migrations.
28
     *
29
     * @return void
30
     */
31
	public function down()
32
	{
33
		Schema::drop('sktms');
34
	}
35
}
36

src/database/migrations/2018_03_20_231030_create_master_sktms_table.php 1 location

@@ 7-37 (lines=31) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreateMasterSktmsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('master_sktms', function (Blueprint $table) {
17
            $table->increments('id');
18
            $table->string('nama');
19
            $table->string('tingkat');
20
            $table->integer('nilai');
21
            $table->integer('bobot');
22
            $table->integer('user_id');
23
            $table->timestamps();
24
            $table->softDeletes();
25
        });
26
    }
27
28
    /**
29
     * Reverse the migrations.
30
     *
31
     * @return void
32
     */
33
    public function down()
34
    {
35
        Schema::dropIfExists('master_sktms');
36
    }
37
}
38