Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function up() |
||
10 | { |
||
11 | Schema::table('dashboard_apels', function(Blueprint $table) { |
||
12 | $table->foreign('province_id')->references('id')->on('provinces') |
||
13 | ->onDelete('set null') |
||
14 | ->onUpdate('restrict'); |
||
15 | }); |
||
16 | Schema::table('dashboard_apels', function(Blueprint $table) { |
||
17 | $table->foreign('regency_id')->references('id')->on('regencies') |
||
18 | ->onDelete('set null') |
||
19 | ->onUpdate('restrict'); |
||
20 | }); |
||
21 | Schema::table('regencies', function(Blueprint $table) { |
||
22 | $table->foreign('province_id')->references('id')->on('provinces') |
||
23 | ->onDelete('set null') |
||
24 | ->onUpdate('restrict'); |
||
25 | }); |
||
40 | } |