diff options
| author | Camil Staps | 2016-07-18 21:59:17 +0200 | 
|---|---|---|
| committer | Camil Staps | 2016-07-18 21:59:17 +0200 | 
| commit | 31eb106c218ae529ef07525d2a145c136fba8eea (patch) | |
| tree | 3e85eaa8f3ae186ac2731f79bc2b1169d37b32bf /database/migrations | |
| parent | Fix previous commit (diff) | |
Added IP to log
Diffstat (limited to 'database/migrations')
| -rw-r--r-- | database/migrations/2016_05_11_114635_add_ip_to_random_logs.php | 31 | 
1 files changed, 31 insertions, 0 deletions
| diff --git a/database/migrations/2016_05_11_114635_add_ip_to_random_logs.php b/database/migrations/2016_05_11_114635_add_ip_to_random_logs.php new file mode 100644 index 0000000..023f333 --- /dev/null +++ b/database/migrations/2016_05_11_114635_add_ip_to_random_logs.php @@ -0,0 +1,31 @@ +<?php + +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Database\Migrations\Migration; + +class AddIpToRandomLogs extends Migration +{ +    /** +     * Run the migrations. +     * +     * @return void +     */ +    public function up() +    { +        Schema::table('random_logs', function (Blueprint $table) { +            $table->string('ip', 45)->nullable(); +        }); +    } + +    /** +     * Reverse the migrations. +     * +     * @return void +     */ +    public function down() +    { +        Schema::table('random_logs', function (Blueprint $table) { +            $table->dropColumn('ip'); +        }); +    } +} | 
