Code Duplication    Length = 27-28 lines in 2 locations

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

@@ 6-32 (lines=27) @@
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreatePbjItemsTable extends Migration {
7
8
	public function up()
9
	{
10
		Schema::create('pbj_items', function(Blueprint $table) {
11
			$table->increments('id');
12
			$table->string('uuid', 191)->unique();
13
			$table->string('keterangan', 191)->nullable();
14
			$table->double('tarif');
15
			$table->integer('jumlah');
16
			$table->double('subtotal');
17
			$table->timestamps();
18
			$table->softDeletes();
19
			$table->integer('transaksi_id')->unsigned()->nullable()->index();
20
			$table->integer('tarif_id')->unsigned()->nullable()->index();
21
			$table->integer('rekening_id')->unsigned()->nullable()->index();
22
			$table->string('transaksi_uuid', 191)->index();
23
			$table->string('tarif_uuid', 191)->index();
24
			$table->string('rekening_uuid', 191)->index();
25
		});
26
	}
27
28
	public function down()
29
	{
30
		Schema::drop('pbj_items');
31
	}
32
}

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

@@ 6-33 (lines=28) @@
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreatePbjTransaksiesTable extends Migration {
7
8
	public function up()
9
	{
10
		Schema::create('pbj_transaksies', function(Blueprint $table) {
11
			$table->increments('id');
12
			$table->string('uuid', 191)->unique();
13
			$table->string('nomor', 191)->unique();
14
			$table->double('total');
15
			$table->double('grandtotal')->nullable();
16
			$table->double('denda')->default('0.00');
17
			$table->double('potongan');
18
			$table->timestamps();
19
			$table->softDeletes();
20
			$table->integer('admin_id')->unsigned()->nullable()->index();
21
			$table->integer('customer_transaksi_id')->unsigned()->nullable()->index();
22
			$table->integer('tarif_id')->unsigned()->nullable();
23
			$table->string('admin_uuid', 191)->index();
24
			$table->string('customer_transaksi_uuid', 191)->index();
25
			$table->string('tarif_uuid')->index();
26
		});
27
	}
28
29
	public function down()
30
	{
31
		Schema::drop('pbj_transaksies');
32
	}
33
}