Files
newznab-tmux/database/migrations/2018_01_20_195801_create_logging_table.php
T
2018-01-20 22:58:40 +01:00

36 lines
571 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateLoggingTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('logging', function(Blueprint $table)
{
$table->increments('id');
$table->dateTime('time')->nullable();
$table->string('username', 50)->nullable();
$table->string('host', 40)->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('logging');
}
}