Code Duplication    Length = 16-16 lines in 2 locations

updates/1.0/create_carts_table.php 1 location

@@ 7-22 (lines=16) @@
4
use October\Rain\Database\Schema\Blueprint;
5
use October\Rain\Database\Updates\Migration;
6
7
class CreateCartsTable extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('bedard_shop_carts', function(Blueprint $table) {
12
            $table->engine = 'InnoDB';
13
            $table->increments('id');
14
            $table->timestamps();
15
        });
16
    }
17
18
    public function down()
19
    {
20
        Schema::dropIfExists('bedard_shop_carts');
21
    }
22
}
23

updates/1.0/create_orders_table.php 1 location

@@ 7-22 (lines=16) @@
4
use October\Rain\Database\Schema\Blueprint;
5
use October\Rain\Database\Updates\Migration;
6
7
class CreateOrdersTable extends Migration
8
{
9
    public function up()
10
    {
11
        Schema::create('bedard_shop_orders', function (Blueprint $table) {
12
            $table->engine = 'InnoDB';
13
            $table->increments('id');
14
            $table->timestamps();
15
        });
16
    }
17
18
    public function down()
19
    {
20
        Schema::dropIfExists('bedard_shop_orders');
21
    }
22
}
23