diff options
| author | Camil Staps | 2016-05-10 23:27:22 +0200 | 
|---|---|---|
| committer | Camil Staps | 2016-05-10 23:27:22 +0200 | 
| commit | 520b977a27d016a84cb105035a173d64e4629b40 (patch) | |
| tree | 6a6ed7ee69ce735ee1785b6165c301947a74e8d4 /database/migrations | |
| parent | Fix (diff) | |
Added logging of random requests
Diffstat (limited to 'database/migrations')
| -rw-r--r-- | database/migrations/2016_05_10_211558_create_random_logs_table.php | 32 | 
1 files changed, 32 insertions, 0 deletions
| diff --git a/database/migrations/2016_05_10_211558_create_random_logs_table.php b/database/migrations/2016_05_10_211558_create_random_logs_table.php new file mode 100644 index 0000000..f7fca92 --- /dev/null +++ b/database/migrations/2016_05_10_211558_create_random_logs_table.php @@ -0,0 +1,32 @@ +<?php + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class CreateRandomLogsTable extends Migration +{ +	/** +	 * Run the migrations. +	 * +	 * @return void +	 */ +	public function up() +	{ +		Schema::create('random_logs', function (Blueprint $table) { +			$table->increments('id'); +			$table->string('request', 1023)->collate('utf8_general_ci'); +			$table->string('response', 24)->collate('utf8_general_ci'); +			$table->timestamp('created_at'); +		}); +	} + +	/** +	 * Reverse the migrations. +	 * +	 * @return void +	 */ +	public function down() +	{ +		Schema::drop('random_logs'); +	} +} | 
