Code Duplication    Length = 28-29 lines in 2 locations

database/migrations/2019_11_27_040657_create_divisions_table.php 1 location

@@ 7-34 (lines=28) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateDivisionsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('divisions', function (Blueprint $table) {
17
            $table->bigIncrements('id');
18
            $table->string('name');
19
            $table->string('bn_name')->nullable();
20
            $table->string('url')->nullable();
21
            $table->timestamps();
22
        });
23
    }
24
25
    /**
26
     * Reverse the migrations.
27
     *
28
     * @return void
29
     */
30
    public function down()
31
    {
32
        Schema::dropIfExists('divisions');
33
    }
34
}
35

database/migrations/2019_11_27_040803_create_upazilas_table.php 1 location

@@ 7-35 (lines=29) @@
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateUpazilasTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('upazilas', function (Blueprint $table) {
17
            $table->bigIncrements('id');
18
            $table->unsignedBigInteger('district_id');
19
            $table->string('name');
20
            $table->string('bn_name')->nullable();
21
            $table->string('url')->nullable();
22
            $table->timestamps();
23
        });
24
    }
25
26
    /**
27
     * Reverse the migrations.
28
     *
29
     * @return void
30
     */
31
    public function down()
32
    {
33
        Schema::dropIfExists('upazilas');
34
    }
35
}
36