1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
use Illuminate\Database\Migrations\Migration; |
|
|
|
|
4
|
|
|
use Illuminate\Database\Schema\Blueprint; |
|
|
|
|
5
|
|
|
use Illuminate\Support\Facades\Schema; |
|
|
|
|
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class CreateFirewallRequestsLogTable. |
9
|
|
|
*/ |
10
|
|
|
class CreateFirewallLogTable extends Migration |
11
|
|
|
{ |
12
|
|
|
/** |
13
|
|
|
* Run the migrations. |
14
|
|
|
* |
15
|
|
|
* @return void |
16
|
|
|
*/ |
17
|
|
|
public function up() |
18
|
|
|
{ |
19
|
|
|
Schema::create('firewall_log', function (Blueprint $table) { |
20
|
|
|
$table->increments('id'); |
21
|
|
|
$table->string('path', 25); |
22
|
|
|
$table->string('method', 25); |
23
|
|
|
$table->string('url', 250); |
24
|
|
|
$table->string('uri', 250); |
25
|
|
|
$table->string('full_url', 250); |
26
|
|
|
$table->longText('query')->nullable(); |
27
|
|
|
$table->string('file_name', 250); |
28
|
|
|
$table->string('http_host', 250); |
29
|
|
|
$table->string('http_user_agent', 250); |
30
|
|
|
$table->string('ip_address', 25); |
31
|
|
|
$table->boolean('black_listed')->nullable(); |
32
|
|
|
$table->boolean('white_listed')->nullable(); |
33
|
|
|
$table->boolean('accepted')->nullable(); |
34
|
|
|
$table->boolean('rejected')->nullable(); |
35
|
|
|
$table->longText('all_request_data')->nullable(); |
36
|
|
|
$table->longText('response_data')->nullable(); |
37
|
|
|
$table->timestamps(); |
38
|
|
|
}); |
39
|
|
|
} |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* Reverse the migrations. |
43
|
|
|
* |
44
|
|
|
* @return void |
45
|
|
|
*/ |
46
|
|
|
public function down() |
47
|
|
|
{ |
48
|
|
|
Schema::dropIfExists('firewall_log'); |
49
|
|
|
} |
50
|
|
|
} |
51
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths