CreateAdminSettingsTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 17
c 1
b 0
f 0
dl 0
loc 35
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 17 1
1
<?php
2
3
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Support\Facades\Schema;
6
7
class CreateAdminSettingsTable extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14
    public function up()
15
    {
16
        Schema::create('admin_settings', function (Blueprint $table) {
17
            $table->id();
18
            $table->string('shop_name')->default('MongiCommerce');
19
            $table->string('iban')->default('DE79100110012626219557');
20
            $table->string('email')->default('[email protected]');
21
            $table->string('minimum_shop')->default('50');
22
            $table->string('stripe_api_key')->default('pk_test_gm6oybWPRbK7A3btf0CgwmRv');
23
            $table->string('stripe_api_secret')->default('sk_test_F6whJE7SznVkEI0aPxeo97b3');
24
            $table->string('share_capital')->default('10000');
25
            $table->string('address')->default('Via monsignor Laera, Acquaviva delle fonti, 214, Italia');
26
            $table->string('currency')->default('€');
27
            $table->string('telephone')->default('3240537258');
28
            $table->string('claim_email')->default('[email protected]');
29
            $table->string('piva')->default('12345678901');
30
            $table->timestamps();
31
        });
32
    }
33
34
    /**
35
     * Reverse the migrations.
36
     *
37
     * @return void
38
     */
39
    public function down()
40
    {
41
        Schema::dropIfExists('admin_settings');
42
    }
43
}
44