Test Failed
Pull Request — master (#48)
by
unknown
05:05
created

AddSpEntityIdOverrideColumnToSaml2TenantsTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 4 1
A up() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
use Illuminate\Database\Migrations\Migration;
6
use Illuminate\Database\Schema\Blueprint;
7
use Illuminate\Support\Facades\Schema;
8
9
class AddSpEntityIdOverrideColumnToSaml2TenantsTable extends Migration
10
{
11
    /**
12
     * Run the migrations.
13
     *
14
     * @return void
15
     */
16
    public function up()
17
    {
18
        Schema::table('saml2_tenants', function (Blueprint $table) {
19
            $table->string('sp_entity_id_override')->nullable();
20
        });
21
    }
22
23
    /**
24
     * Reverse the migrations.
25
     *
26
     * @return void
27
     */
28
    public function down()
29
    {
30
        Schema::table('saml2_tenants', function (Blueprint $table) {
31
            $table->dropColumn('sp_entity_id_override');
32
        });
33
    }
34
}
35