Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class AddModelMorphColumnsToSaml2TenantsTable extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::rename('saml2_tenants', 'saml2_identity_providers'); |
||
17 | |||
18 | Schema::table('saml2_identity_providers', function (Blueprint $table) { |
||
19 | $table->nullableMorphs('tenant'); |
||
20 | }); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Reverse the migrations. |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function down() |
||
35 | } |
||
36 | } |
||
37 |