diff options
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'); + }); + } +} |