migrations/2015_12_20_100006_create_menus_table.php 1 location
|
@@ 53-59 (lines=7) @@
|
50 |
|
$table->foreign('extension_id')->references('id')->on('extensions')->onDelete('cascade'); |
51 |
|
}); |
52 |
|
|
53 |
|
Schema::create('menu_permission', function (Blueprint $table) { |
54 |
|
$table->unsignedInteger('menu_id')->index(); |
55 |
|
$table->unsignedInteger('permission_id')->index(); |
56 |
|
|
57 |
|
$table->foreign('menu_id')->references('id')->on('menus')->onDelete('cascade'); |
58 |
|
$table->foreign('permission_id')->references('id')->on('permissions')->onDelete('cascade'); |
59 |
|
}); |
60 |
|
}); |
61 |
|
} |
62 |
|
|
migrations/2015_12_20_100007_create_widgets_table.php 1 location
|
@@ 39-45 (lines=7) @@
|
36 |
|
$table->foreign('extension_id')->references('id')->on('extensions'); |
37 |
|
}); |
38 |
|
|
39 |
|
Schema::create('widget_permission', function (Blueprint $table) { |
40 |
|
$table->unsignedInteger('widget_id')->index(); |
41 |
|
$table->unsignedInteger('permission_id')->index(); |
42 |
|
|
43 |
|
$table->foreign('widget_id')->references('id')->on('widgets')->onDelete('cascade'); |
44 |
|
$table->foreign('permission_id')->references('id')->on('permissions')->onDelete('cascade'); |
45 |
|
}); |
46 |
|
|
47 |
|
Schema::create('widget_menu', function (Blueprint $table) { |
48 |
|
$table->unsignedInteger('widget_id')->index(); |
migrations/2015_12_20_100007_create_articles_table.php 1 location
|
@@ 41-48 (lines=8) @@
|
38 |
|
$table->foreign('category_id')->references('id')->on('categories'); |
39 |
|
}); |
40 |
|
|
41 |
|
Schema::create('article_permission', function(Blueprint $table) |
42 |
|
{ |
43 |
|
$table->unsignedInteger('article_id')->index(); |
44 |
|
$table->unsignedInteger('permission_id')->index(); |
45 |
|
|
46 |
|
$table->foreign('article_id')->references('id')->on('articles')->onDelete('cascade'); |
47 |
|
$table->foreign('permission_id')->references('id')->on('permissions')->onDelete('cascade'); |
48 |
|
}); |
49 |
|
} |
50 |
|
|
51 |
|
/** |