Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function up() { |
||
14 | Schema::create('database_logs', function (Blueprint $table) { |
||
15 | $table->bigIncrements('id'); |
||
16 | $table->string('env'); |
||
17 | $table->string('message', 500); |
||
18 | $table->enum('level', [ |
||
19 | 'DEBUG', |
||
20 | 'INFO', |
||
21 | 'NOTICE', |
||
22 | 'WARNING', |
||
23 | 'ERROR', |
||
24 | 'CRITICAL', |
||
25 | 'ALERT', |
||
26 | 'EMERGENCY' |
||
27 | ])->default('INFO'); |
||
28 | $table->text('context'); |
||
29 | $table->text('extra'); |
||
30 | $table->unsignedBigInteger('user_id')->nullable(); |
||
31 | $table->timestamps(); |
||
32 | }); |
||
34 | } |