Files
newznab-tmux/database/migrations/2017_10_12_124141_create_logging_table.php
T
2017-10-12 15:59:42 +02:00

33 lines
714 B
PHP

<?php
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
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()->default(null);
$table->string('username', 50)->nullable()->default(null);
$table->string('host', 40)->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::drop('logging');
}
}